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

Disassembly:
push 0xffffffffffffffff
push 0x47f1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x495780]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x90]
push 0x4e29
push ecx
call fcn.004010f0
add esp, 4
call fcn.004012b0
push 0x4e28
push ecx
mov esi, eax
call fcn.004010f0
add esp, 4
call fcn.004012b0
push 0x4e2a
push ecx
mov dword [esp + 0x30], eax
call fcn.004010f0
add esp, 4
call fcn.004012b0
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
push eax
push ecx
call sub.gdiplus.dll_GdipGetImagePixelFormat
xor ebx, ebx
cmp eax, ebx
je 0x40883e
mov dword [esi + 8], eax
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x20]
push edx
push ebx
push eax
push ebx
push 0x3e8
push 0x3e8
mov dword [esp + 0x88], 0x48bea8
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x8c], ebx
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push 2
push ecx
mov byte [esp + 0x90], 2
call fcn.004010f0
add esp, 4
push eax
call fcn.00401360
mov esi, eax
mov ecx, dword [esi]
lea eax, [esp + 0x30]
push eax
push ecx
call sub.gdiplus.dll_GdipGetFamily
cmp eax, ebx
je 0x4088d4
mov dword [esp + 0x34], eax
mov dword [esi + 4], eax
fld dword [0x48c080]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push 2
push ebx
push ecx
fstp dword [esp]
push eax
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipCreateFont
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
mov byte [esp + 0x88], 3
fldz
mov edx, dword [ebp + 0x38]
fst dword [esp + 0x5c]
mov edi, dword [ebp + 0x24]
fst dword [esp + 0x58]
fst dword [esp + 0x54]
mov eax, edx
mov ecx, edi
fstp dword [esp + 0x50]
mov esi, dword [edx]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
lea esp, [esp]
cmp edi, ebx
je 0x40894a
cmp edi, dword [esp + 0x38]
je 0x40894f
call fcn.0045e23c
cmp esi, dword [esp + 0x3c]
je 0x408a5c
cmp edi, ebx
jne 0x408991
call fcn.0045e23c
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40896e
call fcn.0045e23c
mov ebx, dword [esi + 0x1c]
test edi, edi
jne 0x408995
call fcn.0045e23c
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x408986
call fcn.0045e23c
cmp dword [esi + 0x20], 8
jb 0x408999
mov eax, dword [esi + 0xc]
jmp 0x40899c
mov eax, dword [edi]
jmp 0x408964
mov eax, dword [edi]
jmp 0x40897c
lea eax, [esi + 0xc]
fldz
push 0
push 0
fst dword [esp + 0x68]
lea edx, [esp + 0x58]
fst dword [esp + 0x6c]
push edx
fst dword [esp + 0x74]
mov edx, dword [esp + 0x20]
fstp dword [esp + 0x78]
push 0
lea ecx, [esp + 0x70]
push ecx
push edx
push ebx
push eax
mov eax, dword [esp + 0x38]
push eax
call sub.gdiplus.dll_GdipMeasureString
test eax, eax
je 0x4089d7
mov dword [esp + 0x44], eax
fld dword [esp + 0x58]
fld st(0)
call fcn.004627f0
cmp dword [esp + 0x90], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
jl 0x4089fa
lea eax, [esp + 0x90]
fld dword [0x48c048]
mov ecx, dword [eax]
fcom st(1)
mov dword [esp + 0x90], ecx
fnstsw ax
fstp st(1)
test ah, 1
je 0x408a38
fld dword [esp + 0x5c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jnp 0x408a38
fadd qword [0x48c078]
fiadd dword [esp + 0x1c]
call fcn.004627f0
mov dword [esp + 0x1c], eax
jmp 0x408a3a
fstp st(0)
test edi, edi
jne 0x408a58
call fcn.0045e23c
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x408a4f
call fcn.0045e23c
mov esi, dword [esi]
xor ebx, ebx
jmp 0x408940
mov eax, dword [edi]
jmp 0x408a45
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], eax
mov edx, dword [esi + 4]
push ecx
push edx
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x408a8a
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
shr eax, 1
add eax, 0xa
cmp eax, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
jl 0x408aab
lea eax, [esp + 0x2c]
cmp dword [ebp + 0x20], 8
mov esi, dword [eax]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x90], esi
jb 0x408ac2
mov eax, dword [ebp + 0xc]
jmp 0x408ac5
lea eax, [ebp + 0xc]
fldz
push ebx
push ebx
fst dword [esp + 0x68]
lea edx, [esp + 0x58]
fst dword [esp + 0x6c]
push edx
fst dword [esp + 0x74]
push ebx
fstp dword [esp + 0x7c]
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x28]
push edx
push ecx
push eax
mov eax, dword [esp + 0x38]
push eax
call sub.gdiplus.dll_GdipMeasureString
cmp eax, ebx
je 0x408afd
mov dword [esp + 0x44], eax
fld dword [esp + 0x58]
call fcn.004627f0
mov dword [esp + 0x2c], eax
cmp esi, eax
lea eax, [esp + 0x2c]
jl 0x408b19
lea eax, [esp + 0x90]
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 4]
mov edi, dword [eax]
lea ecx, [esp + 0x90]
push ecx
push edx
mov dword [esp + 0x98], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x408b3e
mov dword [esi + 8], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x1c]
add edi, 0xb0
cmp dword [ebp + 0x40], 0x30
lea ebx, [ecx + eax + 0xbd]
jne 0x408c28
push 0x4e2b
push ecx
call fcn.004010f0
add esp, 4
call fcn.004012b0
mov esi, eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x90]
push edx
push eax
mov dword [esp + 0x98], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x408b98
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x90]
mov eax, dword [esi + 4]
lea edx, [esp + 0x90]
push edx
push eax
lea edi, [edi + ecx + 0x14]
mov dword [esp + 0x98], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x408bc6
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0x4c]
cmp ecx, dword [esp + 0x90]
jae 0x408c28
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x90]
push edx
push eax
mov dword [esp + 0x98], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x408bf9
mov dword [ebx + 8], eax
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x90]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x408c1d
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
lea ebx, [eax + ebx + 0xbd]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x94]
add ebx, 0x14
push ecx
mov dword [esi], edi
mov dword [esi + 4], ebx
call sub.gdiplus.dll_GdipDeleteFont
mov edx, dword [esp + 0x30]
push edx
call sub.gdiplus.dll_GdipDeleteFontFamily
mov eax, dword [esp + 0x18]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x20]
push ecx
call sub.gdiplus.dll_GdipDisposeImage
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 8