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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xa0
push edi
mov edi, dword [esp + 0xac]
lea eax, [esp + 0x8c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x42facf
pop edi
add esp, 0xa0
ret
push ebx
push ebp
push esi
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x58], ebp
je 0x42fea2
mov ecx, dword [esp + 0x9c]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov esi, 0x20
xor ebx, ebx
cmp word [esp + 0xaa], si
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xa0]
lea edx, [ecx*4]
sete bl
mov dword [esp + 0x74], eax
imul eax, edx
push eax
push 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x74], 0x28
mov dword [esp + 0x78], ecx
mov word [esp + 0x80], 1
mov word [esp + 0x82], si
mov dword [esp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x48], esi
jne 0x42fb9b
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xa0
ret
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xb4]
push 0
lea edx, [esp + 0x70]
push edx
push esi
push eax
push 0
push ecx
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [esp + 0xbc]
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 0
lea ecx, [esp + 0x7c]
push ecx
push ebp
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x60], eax
je 0x42fe87
mov eax, dword [esp + 0x9c]
shl eax, 8
cdq
idiv edi
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa0]
shl eax, 8
cdq
idiv ecx
test ebx, ebx
mov dword [esp + 0x50], eax
jne 0x42fc29
mov dword [esp + 0x10], 0xff
test ecx, ecx
jle 0x42fe87
xor ebx, ebx
mov edx, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0xa0]
mov eax, ebx
shr eax, 8
lea ecx, [eax + 1]
add edx, 0xffffffff
cmp ecx, edx
jl 0x42fc59
mov ecx, edx
movzx ebp, bl
mov edx, 0x100
sub edx, ebp
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x44]
add ebp, edx
mov edx, dword [esp + 0x3c]
imul eax, edx
imul ecx, edx
add eax, esi
xor edx, edx
mov dword [esp + 0x64], ebp
add ecx, esi
cmp edi, edx
mov ebp, eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], edx
jle 0x42fe65
mov dword [esp + 0x34], edx
jmp 0x42fcb8
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x9c]
mov eax, edx
shr eax, 8
lea esi, [eax + 1]
add ebx, 0xffffffff
cmp esi, ebx
jge 0x42fcd0
mov ebx, esi
movzx edi, dl
mov edx, dword [ebp + eax*4]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp + ebx*4]
mov ebx, dword [ecx + ebx*4]
movzx ecx, bl
imul ecx, edi
mov dword [esp + 0x1c], eax
movzx ebp, byte [esp + 0x1c]
mov esi, 0x100
imul ebp, edi
sub esi, edi
movzx eax, dl
imul eax, esi
add eax, ecx
movzx ecx, byte [esp + 0x18]
imul ecx, esi
add ecx, ebp
shr ecx, 8
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
shr eax, 8
imul eax, dword [esp + 0x20]
add eax, ecx
movzx ebx, bh
movzx ebp, byte [esp + 0x1d]
imul ebx, edi
movzx ecx, dh
imul ebp, edi
imul ecx, esi
add ecx, ebx
movzx ebx, byte [esp + 0x19]
imul ebx, esi
add ebx, ebp
shr ecx, 8
imul ecx, dword [esp + 0x20]
shr ebx, 8
imul ebx, dword [esp + 0x24]
add ecx, ebx
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
shr ecx, 8
mov dword [esp + 0x54], ecx
shr ebx, 0x10
and ebx, 0xff
imul ebx, edi
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
imul ecx, esi
add ecx, ebx
mov ebx, dword [esp + 0x18]
shr ebx, 0x10
and ebx, 0xff
shr ebp, 0x10
imul ebx, esi
and ebp, 0xff
imul ebp, edi
add ebx, ebp
shr ecx, 8
imul ecx, dword [esp + 0x20]
shr ebx, 8
imul ebx, dword [esp + 0x24]
add ecx, ebx
shr eax, 8
shr ecx, 8
cmp dword [esp + 0x68], 0
je 0x42fe15
mov ebp, dword [esp + 0x14]
shr edx, 0x18
shr ebp, 0x18
imul edx, esi
imul ebp, edi
add edx, ebp
shr edx, 8
imul edx, dword [esp + 0x20]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
shr ebp, 0x18
imul ebp, esi
mov esi, dword [esp + 0x14]
shr edx, 0x18
imul edx, edi
add ebp, edx
shr ebp, 8
imul ebp, dword [esp + 0x24]
add esi, ebp
mov dword [esp + 0x10], edx
shr esi, 8
mov dword [esp + 0x10], ebp
mov dword [esp + 0x10], esi
xor edx, edx
mov dh, byte [esp + 0x10]
mov edi, dword [esp + 0xb8]
movzx eax, al
mov dl, cl
xor ecx, ecx
mov ch, byte [esp + 0x54]
shl edx, 0x10
movzx ecx, cx
or edx, ecx
mov ecx, dword [esp + 0x64]
or edx, eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + eax*4], edx
mov edx, dword [esp + 0x34]
add edx, dword [esp + 0x40]
add eax, 1
cmp eax, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edx
jl 0x42fcb0
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
add ebx, dword [esp + 0x50]
lea eax, [edi*4]
add dword [esp + 0x28], eax
sub dword [esp + 0x38], 1
mov dword [esp + 0x30], ebx
jne 0x42fc41
mov ebp, dword [esp + 0x58]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x60]
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xa0
ret