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

Disassembly:
sub esp, 0x64
push ebx
mov bl, byte [esp + 0x78]
xor ecx, ecx
push ebp
test bl, bl
setne cl
push esi
mov esi, dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
push edi
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x40]
push eax
mov eax, dword [edi + 4]
dec ecx
push 0x26200a
and ecx, 2
or ecx, 1
push ecx
lea edx, [esp + 0x94]
push edx
push eax
call esi
test eax, eax
jne 0x4a8e71
movzx edx, bl
mov ebx, dword [esp + 0x7c]
neg edx
sbb edx, edx
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [ebx + 4]
push 0x26200a
and edx, 2
or edx, 1
push edx
lea eax, [esp + 0xa4]
push eax
push ecx
call esi
test eax, eax
je 0x4a8c29
lea edx, [esp + 0x40]
mov dword [ebx + 8], eax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
jmp 0x4a8e6d
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
xor ebp, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x94], ebp
jle 0x4a8e4a
xor eax, eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x90], eax
jle 0x4a8e38
lea edi, [eax*4]
mov eax, dword [esp + 0x60]
imul eax, ebp
add eax, edi
add eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov al, byte [eax + 3]
test al, al
je 0x4a8e1a
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov edx, esi
imul edx, ebp
add edx, edi
add ecx, edx
movzx edx, al
mov dword [esp + 0x10], ecx
mov cl, byte [ecx + 3]
mov dword [esp + 0x3c], edx
mov eax, 0xff
sub eax, edx
movzx edx, cl
mov ecx, 0xff
sub ecx, edx
imul ecx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
or bl, 0xff
sub bl, al
cmp byte [esp + 0x84], 0
mov eax, dword [esp + 0x10]
jne 0x4a8cec
mov cl, byte [eax + 3]
cmp cl, bl
jae 0x4a8cec
mov bl, cl
test bl, bl
je 0x4a8df0
movzx ecx, byte [eax + 2]
mov ebp, dword [esp + 0x30]
movzx edx, byte [ebp + 2]
mov byte [esp + 0x14], cl
movzx ecx, byte [eax + 1]
mov al, byte [eax]
mov byte [esp + 0x18], dl
movzx edx, byte [ebp + 1]
mov byte [esp + 0x15], cl
movzx ecx, byte [ebp]
mov byte [esp + 0x19], dl
mov byte [esp + 0x16], al
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
mov byte [esp + 0x1e], cl
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x1c]
call fcn.005050b0
movzx edx, bl
fild dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
add esp, 8
xor ecx, ecx
fild dword [esp + 0x34]
fdivp st(1)
fld1
fsub st(1)
fld qword [0x9ad798]
movzx eax, byte [esp + ecx + 0x14]
fnstcw word [esp + 0x10]
imul eax, dword [esp + 0x38]
movzx edx, byte [esp + ecx + 0x1c]
imul edx, dword [esp + 0x3c]
add eax, edx
mov dword [esp + 0x34], eax
movzx eax, byte [esp + ecx + 0x18]
fild dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x34], eax
fmul st(3)
movzx eax, word [esp + 0x10]
fdiv st(1)
or eax, 0xc00
cmp byte [esp + 0x84], 0
fild dword [esp + 0x34]
mov dword [esp + 0x34], eax
fmul st(3)
faddp st(1)
fldcw word [esp + 0x34]
fistp dword [esp + 0x34]
mov al, byte [esp + 0x34]
fldcw word [esp + 0x10]
je 0x4a8dcd
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x20]
jmp 0x4a8dd1
mov edx, dword [esp + 0x24]
imul esi, ebp
sub esi, ecx
add esi, edi
inc ecx
mov byte [esi + edx + 2], al
mov esi, dword [esp + 0x48]
cmp ecx, 3
jl 0x4a8d60
fstp st(2)
fstp st(0)
fstp st(0)
cmp byte [esp + 0x84], 0
je 0x4a8e0d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
imul eax, ebp
add eax, edi
mov byte [eax + ecx + 3], bl
jmp 0x4a8e1a
mov edx, dword [esp + 0x24]
imul esi, ebp
add esi, edi
mov byte [esi + edx + 3], bl
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x90]
jl 0x4a8c5f
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
inc ebp
mov dword [esp + 0x28], ebp
cmp ebp, dword [esp + 0x94]
jl 0x4a8c4c
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
lea eax, [esp + 0x58]
push eax
push ecx
call esi
test eax, eax
je 0x4a8e62
mov dword [ebx + 8], eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x40]
push edx
push eax
call esi
test eax, eax
je 0x4a8e74
mov dword [edi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x30