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

Disassembly:
sub esp, 0x84
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov dword [esp + 0x14], esi
call edx
test eax, eax
je 0x4ff4a4
xor eax, eax
pop esi
add esp, 0x84
ret 0x2c
push ebx
mov ebx, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xa0]
cmp edi, ebx
jne 0x4ff517
mov eax, dword [esp + 0xa4]
cmp eax, dword [esp + 0xb4]
jne 0x4ff517
mov ecx, dword [esp + 0xbc]
mov edx, dword [esi]
push ecx
mov ecx, dword [esp + 0xbc]
mov edx, dword [edx + 0x38]
push ecx
mov ecx, dword [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xb0]
push edi
push eax
mov eax, dword [esp + 0xb0]
push ecx
push eax
mov ecx, esi
call edx
pop edi
pop ebx
pop esi
add esp, 0x84
ret 0x2c
mov ecx, dword [esp + 0x94]
push ebp
lea eax, [esp + 0x1c]
push eax
xor ebp, ebp
push ecx
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov al, byte [esp + 0xbc]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebp
cmp al, 0xff
je 0x4ff613
fld1
movzx eax, al
fst dword [esp + 0x30]
mov dword [esp + 0x10], eax
fldz
push 8
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
fst dword [esp + 0x50]
fst dword [esp + 0x54]
fst dword [esp + 0x58]
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fst dword [esp + 0x68]
fst dword [esp + 0x6c]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x78]
fxch st(1)
fst dword [esp + 0x4c]
fst dword [esp + 0x64]
fild dword [esp + 0x14]
fdiv qword [0x5fecc0]
fstp dword [esp + 0x7c]
fxch st(1)
fst dword [esp + 0x80]
fst dword [esp + 0x84]
fst dword [esp + 0x88]
fst dword [esp + 0x8c]
fstp dword [esp + 0x90]
fstp dword [esp + 0x94]
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x4ff5f4
push esi
mov dword [esi], ebp
call sub.gdiplus.dll_GdipCreateImageAttributes
mov dword [esi + 4], eax
jmp 0x4ff5f6
xor esi, esi
mov edx, dword [esi]
push ebp
push ebp
lea ecx, [esp + 0x38]
push ecx
push 1
push ebp
push edx
mov dword [esp + 0x30], esi
call sub.gdiplus.dll_GdipSetImageAttributesColorMatrix
cmp eax, ebp
je 0x4ff613
mov dword [esi + 4], eax
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa8]
add eax, edx
cmp edx, eax
mov ebp, edx
mov dword [esp + 0x24], eax
jge 0x4ff6f9
mov ecx, dword [esp + 0x9c]
lea eax, [ecx + edi]
mov dword [esp + 0x10], eax
nop
mov edi, dword [esp + 0xa8]
mov eax, edx
sub eax, ebp
add eax, edi
mov edi, dword [esp + 0xb8]
cmp edi, eax
mov esi, ecx
mov dword [esp + 0x14], edi
jl 0x4ff662
mov dword [esp + 0x14], eax
cmp ecx, dword [esp + 0x10]
jge 0x4ff6eb
lea esp, [esp]
mov edx, dword [esp + 0xa4]
sub ecx, esi
lea edi, [ecx + edx]
cmp ebx, edi
jge 0x4ff682
mov edi, ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
test ecx, ecx
je 0x4ff695
mov ecx, dword [ecx]
jmp 0x4ff697
xor ecx, ecx
test eax, eax
je 0x4ff6a0
mov eax, dword [eax + 4]
jmp 0x4ff6a2
xor eax, eax
mov edx, dword [esp + 0xb0]
push 0
push 0
push ecx
mov ecx, dword [esp + 0xc4]
push 2
push ecx
mov ecx, dword [esp + 0xc0]
push ebx
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push edi
push ebp
push esi
push eax
mov eax, dword [esp + 0x5c]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x9c]
add esi, edi
cmp esi, dword [esp + 0x10]
jl 0x4ff670
mov edx, dword [esp + 0xa0]
add ebp, dword [esp + 0x14]
cmp ebp, dword [esp + 0x24]
jl 0x4ff640
cmp byte [esp + 0xbc], 0xff
pop ebp
je 0x4ff71a
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4ff71a
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipDisposeImageAttributes
push esi
call sub.gdiplus.dll_GdipFree
mov edx, dword [esp + 0x24]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x84
ret 0x2c