Function at 0x45b960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57b0f3
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x14]
sub eax, 1
je 0x45be29
sub eax, 3
jne 0x45be44
mov eax, dword [ecx + 0x20]
add eax, 8
push 0xfde9
lea ecx, [esp + 0xc0]
push eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc0], ecx
call fcn.004102d0
lea edx, [esp + 0x44]
mov dword [esp + 0x1c8], 0
mov ecx, dword [esp + 0xb8]
push edx
call fcn.0040ff50
mov byte [esp + 0x1c8], 2
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0xbc]
cmp eax, ecx
je 0x45ba16
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x20], eax
xor eax, eax
fldz
sub ecx, eax
mov edi, ecx
fst dword [esp + 0x28]
test edi, edi
fstp dword [esp + 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], edi
jle 0x45bbb9
mov eax, dword [ebx]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
lea esi, [esp + 0xb4]
mov eax, ebx
call fcn.0045a4c0
mov eax, dword [eax]
mov edi, dword [ebx]
push eax
lea esi, [esp + 0x50]
call fcn.0045b8d0
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
mov dword [esp + 0x3c], 0
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x34], eax
mov byte [esp + 0x1c8], 5
fldz
mov edx, dword [esp + 0x30]
fst dword [esp + 0x70]
fst dword [esp + 0x6c]
push 1
fst dword [esp + 0x6c]
push edx
fstp dword [esp + 0x6c]
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
test eax, eax
je 0x45bac9
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x4c]
fldz
mov edi, dword [esp + 0x14]
fst dword [esp + 0xa0]
push 0
fst dword [esp + 0xa8]
push 0
fst dword [esp + 0xb0]
lea eax, [esp + 0x6c]
fstp dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push edi
push eax
push ecx
call sub.gdiplus.dll_GdipMeasureString
test eax, eax
je 0x45bb1b
mov dword [esp + 0x78], eax
fld dword [esp + 0x6c]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x4c]
fstp dword [esp + 0x28]
fld dword [esp + 0x70]
fstp dword [esp + 0x2c]
call fcn.00459a30
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x1c]
sub edx, dword [eax + 0x28]
mov esi, dword [ebp + 0x14]
fld dword [esi]
mov dword [esp + 0x1c], edx
fadd dword [esp + 0x28]
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 1
mov eax, dword [esp + 0x30]
push eax
je 0x45bb92
sub edi, 1
mov dword [esp + 0x18], edi
call sub.gdiplus.dll_GdipDeleteStringFormat
mov ecx, dword [esp + 0x4c]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
mov byte [esp + 0x1c8], 2
mov edx, dword [esp + 0x10]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
test edi, edi
jg 0x45ba44
jmp 0x45bbbc
call sub.gdiplus.dll_GdipDeleteStringFormat
mov ecx, dword [esp + 0x4c]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
mov byte [esp + 0x1c8], 2
mov edx, dword [esp + 0x10]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov edi, dword [esp + 0x14]
jmp 0x45bbbc
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 0
jne 0x45bd7c
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edx
lea esi, [esp + 0xb0]
mov eax, ebx
call fcn.0045a4c0
mov eax, dword [eax]
mov edi, dword [ebx]
push eax
lea esi, [esp + 0x80]
call fcn.0045b8d0
lea eax, [esp + 0x38]
push eax
push 0
push 0
mov dword [esp + 0x44], 0
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx]
mov esi, dword [sym.imp.GDI32.dll_GetTextColor]
push ecx
call esi
mov edx, dword [ebx]
push edx
mov edi, eax
call esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
push eax
call esi
movzx ecx, byte [esp + 0x1d]
movzx eax, al
or eax, 0xfffffe00
shl eax, 8
or eax, ecx
mov edx, edi
shr edx, 0x10
movzx ecx, dl
shl eax, 8
lea edx, [esp + 0x48]
or eax, ecx
push edx
push eax
mov dword [esp + 0x8c], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x50], 0
call sub.gdiplus.dll_GdipCreateSolidFill
mov esi, dword [esp + 0x48]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], esi
mov eax, dword [ebp + 0x14]
mov byte [esp + 0x1c8], 9
fld dword [eax]
fstp dword [esp + 0x1c]
push 1
fld dword [eax + 4]
fstp dword [esp + 0x58]
fld dword [esp + 0x2c]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x5c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fstp dword [esp + 0x94]
fld dword [esp + 0x58]
fstp dword [esp + 0x98]
fld dword [esp + 0x5c]
fstp dword [esp + 0x9c]
fld dword [esp + 0x28]
fstp dword [esp + 0xa0]
mov eax, dword [esp + 0x3c]
push eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
test eax, eax
je 0x45bcf8
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x4c]
call fcn.00459a30
mov eax, dword [eax + 0x50]
mov edi, dword [esp + 0x10]
push eax
push edi
call sub.gdiplus.dll_GdipSetTextRenderingHint
test eax, eax
je 0x45bd1a
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x7c]
push esi
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x98]
push eax
push ecx
push 0xffffffffffffffff
push edx
push edi
call sub.gdiplus.dll_GdipDrawString
test eax, eax
je 0x45bd42
mov dword [esp + 0x60], eax
push esi
mov dword [esp + 0x88], vtable.Gdiplus::Brush.0
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x38]
push eax
call sub.gdiplus.dll_GdipDeleteStringFormat
mov ecx, dword [esp + 0x7c]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
push edi
mov byte [esp + 0x1cc], 2
call sub.gdiplus.dll_GdipDeleteGraphics
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 0x14]
cmp dword [esp + 0x40], edi
je 0x45bdcb
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x4c]
call fcn.00459a30
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x18]
add ecx, dword [eax + 0x14]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fstp dword [esi]
mov ecx, dword [eax + 0x4c]
call fcn.00459a30
fild dword [eax + 0x34]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
fadd dword [esi + 4]
lea eax, [edx + edi*2]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
fstp dword [esi + 4]
jmp 0x45ba26
fld dword [esi]
mov ecx, dword [esp + 0x18]
fadd dword [esp + 0x28]
fstp dword [esi]
mov ecx, dword [ecx + 0x4c]
call fcn.00459a30
fild dword [eax + 0x30]
or ecx, 0xffffffff
fadd dword [esi]
mov dword [esp + 0x1c8], 0xffffffff
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
fstp dword [esi]
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45be44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x18]
push eax
push edx
call fcn.0045b2c0
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14