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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b9d76
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x435a80
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 4], ebx
jmp 0x435d47
call fcn.0041af9b
mov dword [esp + 0x18], eax
call fcn.0041af7b
fild dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fmul dword [ebp + 0x10]
call fcn.004b7b30
fild dword [esp + 0x1c]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [ebp + 0x10]
call fcn.004b7b30
cmp dword [ebp + 0x14], ebx
mov edi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], 1
je 0x435af9
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x435af9
cmp eax, dword [ebp + 0x14]
jl 0x435af9
cdq
idiv dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
sub ecx, edx
mov eax, edx
neg eax
sbb eax, eax
and eax, ecx
add dword [esp + 0x14], eax
mov esi, dword [ebp + 8]
push edi
push dword [esp + 0x18]
call fcn.0042706a
test eax, eax
jne 0x435b11
mov ecx, esi
jmp 0x435a76
mov eax, esi
call fcn.0041217e
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x435d37
push dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x28]
lea esi, [esp + 0x44]
mov dword [esp + 0x3c], eax
call fcn.00426f04
push 2
mov dword [esp + 0x88], ebx
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetInterpolationMode
cmp eax, ebx
je 0x435b6b
mov dword [esp + 0x44], eax
fld1
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 0x44
jnp 0x435ce3
cmp dword [esp + 0x10], 1
je 0x435ce3
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x30]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipGetImagePixelFormat
cmp eax, ebx
je 0x435b9d
mov dword [edi + 8], eax
push dword [esp + 0x30]
lea esi, [esp + 0x6c]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0041bfab
push 8
mov byte [esp + 0x88], 1
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x435bd4
lea eax, [esp + 0x68]
call fcn.0041bfec
mov esi, eax
jmp 0x435bd6
xor esi, esi
cmp esi, ebx
je 0x435cd8
push 0xffffff
push dword [esi]
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, ebx
je 0x435bf1
mov dword [esi + 4], eax
push dword [esp + 0x1c]
mov eax, edi
push dword [esp + 0x1c]
push ebx
push ebx
call fcn.0041afbb
mov eax, dword [esp + 0x18]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x10]
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x2c], eax
jle 0x435cd8
fild dword [esp + 0x18]
mov dword [esp + 0x14], ebx
fstp dword [esp + 0x50]
fld dword [esp + 0x20]
mov dword [esp + 0x20], ebx
fstp dword [esp + 0x54]
fild dword [esp + 0x14]
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.00435d5e
mov edi, eax
cmp edi, ebx
je 0x435cd8
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push dword [esp + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
push ebx
mov dword [esp + 0x70], eax
push ebx
xor ecx, ecx
lea eax, [esp + 0x68]
lea esi, [esp + 0x50]
mov dword [esp + 0x6c], ebx
call fcn.004237d5
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
inc dword [esp + 0x24]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x10]
jl 0x435c42
push dword [esp + 0x6c]
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x435d13
push dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x1c]
mov dword [esp + 0x68], eax
push ebx
mov dword [esp + 0x70], edi
mov edi, dword [ebp + 0xc]
push ebx
xor ecx, ecx
lea eax, [esp + 0x68]
lea esi, [esp + 0x50]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.004237d5
push dword [esp + 0x38]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x28]
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 ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
cmp dword [esi + 4], ebx
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