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

Disassembly:
push 0xffffffffffffffff
push 0x448100
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], vtable.CBitmap.0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x84], ebx
call fcn.0042a737
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 1
call fcn.0042a737
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 2
call fcn.0042a737
mov byte [esp + 0x84], 3
call fcn.0042a47d
movzx ecx, word [esp + 0x8c]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
lea ecx, [esp + 0x18]
call fcn.0042ad75
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x64]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov eax, edi
cdq
idiv ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], edi
mov ebp, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x60], eax
mov eax, ecx
cdq
idiv dword [esp + 0xa4]
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x54], eax
imul eax, ebp
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
push eax
mov ecx, esi
call fcn.0042ad75
test eax, eax
jne 0x402f33
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403064
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call ebp
push eax
lea ecx, [esp + 0x40]
call fcn.0042ab3d
mov edx, dword [esp + 0x40]
push edx
call ebp
push eax
lea ecx, [esp + 0x30]
call fcn.0042ab3d
cmp esi, ebx
jne 0x402f5f
xor eax, eax
jmp 0x402f62
mov eax, dword [esi + 4]
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.0042adfa
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
push ecx
push edx
mov edi, eax
call fcn.0042adfa
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, ecx
imul eax, dword [esp + 0xa8]
push 0xcc0020
push ebx
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x40]
push edx
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp edi, ebx
jne 0x402fb3
xor eax, eax
jmp 0x402fb6
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.0042adfa
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x94]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x90]
mov dword [esi + 0x20], eax
add eax, edi
mov dword [esi + 0x24], ecx
add ecx, edx
mov dword [esi + 0x14], edi
mov edi, dword [esp + 0x9c]
cmp edi, 0xffffffff
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x98]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], edx
je 0x40305d
push ebx
call ebp
push eax
lea ecx, [esp + 0x20]
call fcn.0042ab3d
mov eax, dword [esi + 4]
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0042adfa
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x20]
push ecx
push edi
push edx
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebp, ebx
mov dword [esi + 8], eax
jne 0x40304d
mov eax, dword [esp + 0x20]
xor ebp, ebp
push ebp
push eax
call fcn.0042adfa
jmp 0x403064
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.0042adfa
jmp 0x403064
mov dword [esi + 8], 0xffffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 2
call fcn.0042abb7
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 1
call fcn.0042abb7
lea ecx, [esp + 0x3c]
mov byte [esp + 0x84], bl
call fcn.0042abb7
lea ecx, [esp + 0x14]
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.0042adc8
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x20