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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50e771
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 0x459f62
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 4], edi
jmp 0x45a230
call fcn.0042f0e8
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.0042f108
fild dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fmul dword [ebp + 0x10]
call fcn.004f7850
fild dword [esp + 0x18]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [ebp + 0x10]
call fcn.004f7850
cmp dword [ebp + 0x14], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 1
je 0x459fd9
cmp ebx, edi
je 0x459fd9
cmp ebx, dword [ebp + 0x14]
jl 0x459fd9
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.004311d6
test eax, eax
jne 0x459ff4
mov ecx, esi
jmp 0x459f58
mov eax, esi
call fcn.0043170c
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 0x45a220
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.0042ec4f
push 2
mov dword [esp + 0x88], edi
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetInterpolationMode
cmp eax, edi
je 0x45a04d
mov dword [esp + 0x44], eax
fld1
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 0x44
jnp 0x45a1c6
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x45a1c6
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImagePixelFormat
cmp eax, edi
je 0x45a081
mov dword [esi + 8], eax
push dword [esp + 0x34]
lea esi, [esp + 0x6c]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.0042f137
push 8
mov byte [esp + 0x88], 1
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x45a0b8
lea eax, [esp + 0x68]
call fcn.0042ec71
mov esi, eax
jmp 0x45a0ba
xor esi, esi
cmp esi, edi
je 0x45a1bb
push 0xffffff
push dword [esi]
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, edi
je 0x45a0d5
mov dword [esi + 4], eax
push dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push dword [esp + 0x20]
push edi
push edi
call fcn.0042ee7d
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 0x45a1bb
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.00458ddf
mov ebx, eax
cmp ebx, edi
je 0x45a1bb
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.0042ef1d
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 0x45a121
push dword [esp + 0x6c]
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x45a1fc
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.0042ef1d
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