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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50d29b
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
jne 0x459fd0
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 4], edi
jmp 0x45a29e
call fcn.0042f143
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.0042f163
fild dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fmul dword [ebp + 0x10]
call fcn.004f6390
fild dword [esp + 0x18]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [ebp + 0x10]
call fcn.004f6390
cmp dword [ebp + 0x14], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 1
je 0x45a047
cmp ebx, edi
je 0x45a047
cmp ebx, dword [ebp + 0x14]
jl 0x45a047
mov eax, ebx
cdq
idiv dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cdq
idiv dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
sub ecx, edx
mov eax, edx
neg eax
sbb eax, eax
and eax, ecx
add dword [esp + 0x10], eax
push dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
call fcn.00431110
test eax, eax
jne 0x45a062
mov ecx, esi
jmp 0x459fc6
mov eax, esi
call fcn.00431646
push edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x30], ebx
je 0x45a28e
push dword [esi + 4]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
lea esi, [esp + 0x44]
mov dword [esp + 0x3c], eax
call fcn.0042ecaa
push 2
mov dword [esp + 0x88], edi
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetInterpolationMode
cmp eax, edi
je 0x45a0bb
mov dword [esp + 0x44], eax
fld1
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 0x44
jnp 0x45a234
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x45a234
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImagePixelFormat
cmp eax, edi
je 0x45a0ef
mov dword [esi + 8], eax
push dword [esp + 0x34]
lea esi, [esp + 0x6c]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.0042f1b6
push 8
mov byte [esp + 0x88], 1
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x45a126
lea eax, [esp + 0x68]
call fcn.0042eccc
mov esi, eax
jmp 0x45a128
xor esi, esi
cmp esi, edi
je 0x45a229
push 0xffffff
push dword [esi]
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, edi
je 0x45a143
mov dword [esi + 4], eax
push dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push dword [esp + 0x20]
push edi
push edi
call fcn.0042eed8
mov eax, dword [esp + 0x1c]
cdq
idiv ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
cdq
idiv ebx
cmp ebx, edi
mov dword [esp + 0x2c], eax
jle 0x45a229
fild dword [esp + 0x1c]
mov dword [esp + 0x10], edi
fstp dword [esp + 0x50]
fld dword [esp + 0x20]
mov dword [esp + 0x20], edi
fstp dword [esp + 0x54]
fild dword [esp + 0x10]
sub esp, 0x10
lea eax, [esp + 0x78]
fstp dword [esp + 0x58]
fld dword [esp + 0x64]
fstp dword [esp + 0xc]
fld dword [esp + 0x60]
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fld dword [esp + 0x58]
fstp dword [esp]
call fcn.00458e4d
mov ebx, eax
cmp ebx, edi
je 0x45a229
push dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
push edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], eax
push edi
xor ecx, ecx
lea eax, [esp + 0x68]
mov edi, ebx
lea esi, [esp + 0x50]
call fcn.0042ef78
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
inc dword [esp + 0x24]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, dword [esp + 0x14]
jl 0x45a18f
push dword [esp + 0x6c]
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x45a26a
push dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
push edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], eax
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
lea eax, [esp + 0x68]
lea esi, [esp + 0x50]
call fcn.0042ef78
xor edi, edi
push dword [esp + 0x38]
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x40]
call sub.gdiplus.dll_GdipDeleteGraphics
mov esi, dword [ebp + 8]
push dword [esp + 0x3c]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
cmp dword [esi + 4], edi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
setne al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10