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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a79f2
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 0x45ca66
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 4], edi
jmp 0x45cd34
call fcn.0040df52
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.0040df72
fild dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fmul dword [ebp + 0x10]
call fcn.004a6450
fild dword [esp + 0x18]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [ebp + 0x10]
call fcn.004a6450
cmp dword [ebp + 0x14], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 1
je 0x45cadd
cmp ebx, edi
je 0x45cadd
cmp ebx, dword [ebp + 0x14]
jl 0x45cadd
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.0040fef8
test eax, eax
jne 0x45caf8
mov ecx, esi
jmp 0x45ca5c
mov eax, esi
call fcn.0041042e
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 0x45cd24
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.0040dab9
push 2
mov dword [esp + 0x88], edi
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetInterpolationMode
cmp eax, edi
je 0x45cb51
mov dword [esp + 0x44], eax
fld1
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 0x44
jnp 0x45ccca
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x45ccca
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImagePixelFormat
cmp eax, edi
je 0x45cb85
mov dword [esi + 8], eax
push dword [esp + 0x34]
lea esi, [esp + 0x6c]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.0040dfa1
push 8
mov byte [esp + 0x88], 1
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x45cbbc
lea eax, [esp + 0x68]
call fcn.0040dadb
mov esi, eax
jmp 0x45cbbe
xor esi, esi
cmp esi, edi
je 0x45ccbf
push 0xffffff
push dword [esi]
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, edi
je 0x45cbd9
mov dword [esi + 4], eax
push dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push dword [esp + 0x20]
push edi
push edi
call fcn.0040dce7
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 0x45ccbf
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.0045b8e3
mov ebx, eax
cmp ebx, edi
je 0x45ccbf
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.0040dd87
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 0x45cc25
push dword [esp + 0x6c]
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x45cd00
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.0040dd87
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