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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a9f04
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 0x459a0a
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 4], edi
jmp 0x459cd8
call fcn.0040e06b
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.0040e08b
fild dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fmul dword [ebp + 0x10]
call fcn.004a8890
fild dword [esp + 0x18]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [ebp + 0x10]
call fcn.004a8890
cmp dword [ebp + 0x14], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 1
je 0x459a81
cmp ebx, edi
je 0x459a81
cmp ebx, dword [ebp + 0x14]
jl 0x459a81
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.004101f3
test eax, eax
jne 0x459a9c
mov ecx, esi
jmp 0x459a00
mov eax, esi
call fcn.00410729
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 0x459cc8
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.0040dc22
push 2
mov dword [esp + 0x88], edi
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetInterpolationMode
cmp eax, edi
je 0x459af5
mov dword [esp + 0x44], eax
fld1
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 0x44
jnp 0x459c6e
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x459c6e
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImagePixelFormat
cmp eax, edi
je 0x459b29
mov dword [esi + 8], eax
push dword [esp + 0x34]
lea esi, [esp + 0x6c]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.0040e0ba
push 8
mov byte [esp + 0x88], 1
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x459b60
lea eax, [esp + 0x68]
call fcn.0040dc44
mov esi, eax
jmp 0x459b62
xor esi, esi
cmp esi, edi
je 0x459c63
push 0xffffff
push dword [esi]
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, edi
je 0x459b7d
mov dword [esi + 4], eax
push dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push dword [esp + 0x20]
push edi
push edi
call fcn.0040de00
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 0x459c63
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.004588d5
mov ebx, eax
cmp ebx, edi
je 0x459c63
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.0040dea0
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 0x459bc9
push dword [esp + 0x6c]
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x459ca4
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.0040dea0
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