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

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x88]
push esi
push edi
push eax
mov esi, ecx
push 0x28
push esi
call ebp
mov ebx, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], ebx
test ebx, ebx
jns 0x4ca93c
neg ebx
mov dword [esp + 0x34], ebx
lea eax, [esp + 0xb8]
push eax
push 0x54
push esi
call ebp
mov edx, dword [esp + 0xf8]
mov eax, edx
mov ecx, dword [esp + 0x100]
or eax, ecx
mov ebp, dword [esp + 0xfc]
or eax, ebp
mov dword [esp + 0x24], ecx
not eax
xor ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
test edx, edx
je 0x4ca998
test dl, 1
jne 0x4ca998
mov eax, edx
lea ebx, [ebx]
shr eax, 1
inc ecx
test al, 1
je 0x4ca98d
mov dword [esp + 0x1c], ecx
mov eax, ebp
xor esi, esi
mov dword [esp + 0x20], esi
test eax, eax
je 0x4ca9b8
test al, 1
jne 0x4ca9b8
jmp 0x4ca9ad
shr eax, 1
inc esi
test al, 1
je 0x4ca9ad
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x18], edx
test eax, eax
je 0x4ca9d8
test al, 1
jne 0x4ca9d8
lea ecx, [ecx]
shr eax, 1
inc edx
test al, 1
je 0x4ca9cd
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
je 0x4ca9f4
test al, 1
jne 0x4ca9f4
lea esp, [esp]
shr eax, 1
inc ebp
test al, 1
je 0x4ca9ed
mov eax, dword [esp + 0x38]
shr eax, cl
mov ecx, esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
shr eax, cl
mov ecx, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
shr eax, cl
mov ecx, ebp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
shr eax, cl
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4cac0e
push 0
mov dword [esp + 0x50], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [esp + 0x60], 0x28
xor eax, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x70], eax
mov eax, ebx
imul eax, edi
push 0
push 0
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0x200001
shl eax, 2
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x54]
push eax
push 0
lea eax, [esp + 0x70]
mov dword [esp + 0x98], 0xff0000
push eax
push esi
mov dword [esp + 0xa4], 0xff00
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push esi
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x3c], 0
je 0x4cac0e
cmp dword [esp + 0x44], 0
je 0x4cac0e
cmp dword [esp + 0x48], 0
je 0x4cac0e
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4cac0e
test ebx, ebx
jle 0x4cabff
mov ecx, dword [esp + 0x30]
lea edx, [edi*4]
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x4cab0d
mov dword [esp + 0x50], 0
test edi, edi
jle 0x4cabe6
mov ebx, dword [esp + 0x18]
mov eax, ecx
mov dword [esp + 0x54], ecx
lea ebx, [ebx]
mov edi, dword [eax]
mov ecx, ebp
mov eax, edi
xor edx, edx
and eax, dword [esp + 0x14]
shr eax, cl
imul eax, eax, 0xff
mov ecx, dword [esp + 0x1c]
div esi
xor edx, edx
movzx esi, al
mov eax, edi
and eax, dword [esp + 0x38]
shr eax, cl
imul eax, eax, 0xff
mov ecx, dword [esp + 0x20]
shl esi, 8
div dword [esp + 0x3c]
xor edx, edx
movzx eax, al
or esi, eax
mov eax, edi
and eax, dword [esp + 0x40]
shr eax, cl
mov ecx, ebx
imul eax, eax, 0xff
and edi, dword [esp + 0x24]
shl esi, 8
shr edi, cl
mov ecx, dword [esp + 0x2c]
div dword [esp + 0x44]
xor edx, edx
movzx eax, al
or esi, eax
imul eax, edi, 0xff
mov edi, dword [esp + 0x58]
shl esi, 8
div dword [esp + 0x48]
mov edx, dword [esp + 0x50]
add ecx, edx
movzx eax, al
inc edx
or esi, eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x4c]
mov dword [eax + ecx*4], esi
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x54], eax
cmp edx, edi
jl 0x4cab2d
mov ebx, dword [esp + 0x34]
lea edx, [edi*4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add eax, edi
add ecx, edx
sub ebx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
jne 0x4cab0d
mov eax, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret