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

Disassembly:
sub esp, 0x78
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
mov ebp, dword [esp + 0x88]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x4a86bf
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x4a86dd
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push 0x26200a
push 3
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 4]
push eax
mov dword [esp + 0x34], esi
mov esi, dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call esi
cmp eax, ebx
jne 0x4a88c3
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x4c]
push edx
push 0x26200a
push 1
lea eax, [esp + 0x24]
push eax
push ecx
call esi
cmp eax, ebx
je 0x4a874a
lea edx, [esp + 0x34]
mov dword [ebp + 8], eax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
cmp eax, ebx
jmp 0x4a88c1
mov ecx, dword [esp + 0x8c]
mov esi, dword [ecx + 4]
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x64]
call fcn.004b5a90
cmp dword [esp + 0x24], ebx
jle 0x4a889c
fld qword [0x9ad798]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
imul eax, ebx
add eax, dword [esp + 0x44]
imul ecx, ebx
add ecx, dword [esp + 0x5c]
xor ebp, ebp
test edx, edx
jle 0x4a888b
lea edi, [eax + 3]
lea esi, [ecx + 1]
cmp byte [esp + 0x94], 0
mov al, byte [esi + 2]
je 0x4a8835
movzx edx, byte [esi - 1]
mov dword [esp + 0x10], edx
movzx eax, byte [esi]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fdiv st(1)
movzx ecx, byte [esi + 1]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x34]
push eax
fstp dword [esp + 0x80]
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x6c]
push ecx
fdiv st(1)
fstp dword [esp + 0x88]
fild dword [esp + 0x1c]
fdivrp st(1)
fstp dword [esp + 0x8c]
call dword [esp + 0x70]
fld dword [esp + 0x3c]
fld qword [0x9ad798]
add esp, 0xc
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(1), st(0)
or eax, 0xc00
fxch st(1)
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp dword [esp + 0x10]
mov al, byte [esp + 0x10]
fldcw word [esp + 0x14]
movzx edx, al
fnstcw word [esp + 0x14]
mov dword [esp + 0x10], edx
movzx eax, byte [edi]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fdiv st(1)
movzx eax, word [esp + 0x14]
or eax, 0xc00
inc ebp
add esi, 4
add edi, 4
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmulp st(1)
fldcw word [esp + 0x10]
fistp dword [esp + 0x10]
mov cl, byte [esp + 0x10]
mov byte [edi - 4], cl
mov edx, dword [esp + 0x20]
fldcw word [esp + 0x14]
cmp ebp, edx
jl 0x4a87a0
mov edi, dword [esp + 0x2c]
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x4a877a
mov ebp, dword [esp + 0x28]
fstp st(0)
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
lea edx, [esp + 0x4c]
push edx
push eax
call esi
test eax, eax
je 0x4a88b4
mov dword [ebp + 8], eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
call esi
test eax, eax
je 0x4a88c6
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0x78
ret 0xc