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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x34]
xor ecx, ecx
cmp eax, 8
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
jne 0x402b45
imul edi, dword [esi + 0x18]
mov ebx, dword [esi + 0xa8]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add edi, ebx
add edi, edx
cmp eax, ecx
jle 0x4029a3
mov ebp, dword [esp + 0x28]
cmp ebp, ecx
mov dword [esp + 0x1c], edi
jle 0x402933
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push esi
push eax
call fcn.00402640
mov eax, dword [esp + 0x28]
add esp, 0x18
add edi, eax
cmp ebp, 2
jle 0x402970
lea ebx, [ebp - 2]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
push edi
push esi
push eax
call fcn.00402640
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
add edx, eax
add esp, 0x18
add edi, eax
dec ebx
mov dword [esp + 0x10], edx
jne 0x40293f
mov ebp, dword [esp + 0x28]
cmp ebp, 1
jle 0x4029a7
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x38]
push edx
push eax
push edi
push esi
push ecx
call fcn.00402640
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
add esp, 0x18
add eax, edx
mov dword [esp + 0x10], eax
jmp 0x4029a7
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp eax, 2
jle 0x402a7b
add eax, 0xfffffffe
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x14]
imul edi, dword [esi + 0x18]
add edi, dword [esp + 0x1c]
test ebp, ebp
jle 0x402a07
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
push esi
push eax
call fcn.00402640
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
add ebx, ecx
add edx, eax
add esp, 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
add edi, eax
cmp ebp, 2
jle 0x402a40
lea ebx, [ebp - 2]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x38]
push eax
push ecx
push edi
push esi
push edx
call fcn.00402640
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
add edx, eax
add esp, 0x18
add edi, eax
dec ebx
mov dword [esp + 0x10], edx
jne 0x402a0f
cmp ebp, 1
jle 0x402a71
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
push esi
push eax
call fcn.00402640
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
add esp, 0x18
add eax, ecx
mov dword [esp + 0x10], eax
dec dword [esp + 0x3c]
jne 0x4029bb
cmp dword [esp + 0x2c], 1
jle 0x402dad
mov edi, dword [esp + 0x14]
imul edi, dword [esi + 0x18]
add edi, dword [esp + 0x1c]
test ebp, ebp
jle 0x402ad2
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x38]
push eax
push ecx
push edi
push esi
push edx
call fcn.00402640
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add ebx, eax
mov eax, dword [esp + 0x4c]
add edx, eax
add esp, 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
add edi, eax
cmp ebp, 2
jle 0x402b0f
lea ebx, [ebp - 2]
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
push ebp
push edi
push esi
push eax
call fcn.00402640
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
add edx, eax
add esp, 0x18
add edi, eax
dec ebx
mov dword [esp + 0x10], edx
jne 0x402ade
mov ebp, dword [esp + 0x28]
cmp ebp, 1
jle 0x402dad
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x38]
push edx
push eax
push edi
push esi
push ecx
call fcn.00402640
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
add esp, 0x18
add eax, edx
jmp 0x402da9
imul edi, dword [esi + 0x18]
mov ebx, dword [esi + 0xa8]
mov eax, dword [esp + 0x20]
add edi, ebx
lea eax, [eax + eax*2]
add edi, eax
cmp dword [esp + 0x2c], ecx
jle 0x402c06
mov ebp, dword [esp + 0x28]
cmp ebp, ecx
mov dword [esp + 0x1c], edi
jle 0x402b98
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
push eax
push edi
push esi
push ecx
call fcn.00402640
mov eax, dword [esp + 0x28]
lea edx, [eax + edi]
add esp, 0x18
lea edi, [edx + eax*2]
cmp ebp, 2
jle 0x402bd3
lea ebx, [ebp - 2]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
push ebp
push edi
push esi
push edx
call fcn.00402640
mov eax, dword [esp + 0x4c]
add dword [esp + 0x28], eax
add esp, 0x18
dec ebx
lea ecx, [eax + edi]
lea edi, [ecx + eax*2]
jne 0x402ba4
mov ebp, dword [esp + 0x28]
cmp ebp, 1
jle 0x402c0a
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x38]
push eax
push ecx
push edi
push esi
push edx
call fcn.00402640
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
add esp, 0x18
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x402c0a
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp eax, 2
jle 0x402ce0
add eax, 0xfffffffe
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x14]
imul edi, dword [esi + 0x18]
add edi, dword [esp + 0x1c]
test ebp, ebp
jle 0x402c6e
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x38]
push edx
push eax
push edi
push esi
push ecx
call fcn.00402640
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
add ebx, edx
add esp, 0x18
add ecx, eax
mov dword [esp + 0x10], ecx
lea ecx, [eax + edi]
mov dword [esp + 0x14], ebx
lea edi, [ecx + eax*2]
cmp ebp, 2
jle 0x402ca5
lea ebx, [ebp - 2]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x38]
push eax
push ecx
push edi
push esi
push edx
call fcn.00402640
mov eax, dword [esp + 0x4c]
add dword [esp + 0x28], eax
add esp, 0x18
dec ebx
lea ecx, [eax + edi]
lea edi, [ecx + eax*2]
jne 0x402c76
cmp ebp, 1
jle 0x402cd6
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x38]
push eax
push ecx
push edi
push esi
push edx
call fcn.00402640
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
add esp, 0x18
add ecx, eax
mov dword [esp + 0x10], ecx
dec dword [esp + 0x3c]
jne 0x402c1e
cmp dword [esp + 0x2c], 1
jle 0x402dad
mov edi, dword [esp + 0x14]
imul edi, dword [esi + 0x18]
add edi, dword [esp + 0x1c]
test ebp, ebp
jle 0x402d3b
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x38]
push edx
push eax
push edi
push esi
push ecx
call fcn.00402640
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
add ebx, edx
add esp, 0x18
add ecx, eax
mov dword [esp + 0x10], ecx
lea ecx, [eax + edi]
mov dword [esp + 0x14], ebx
lea edi, [ecx + eax*2]
cmp ebp, 2
jle 0x402d7c
lea ebx, [ebp - 2]
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
push ebp
push edi
push esi
push ecx
call fcn.00402640
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
add ecx, eax
add esp, 0x18
dec ebx
lea edx, [eax + edi]
mov dword [esp + 0x10], ecx
lea edi, [edx + eax*2]
jne 0x402d47
mov ebp, dword [esp + 0x28]
cmp ebp, 1
jle 0x402dad
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
push esi
push eax
call fcn.00402640
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
add esp, 0x18
add eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x402e67
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x402e67
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402e67
cmp dword [esp + 0x78], eax
jne 0x402e67
mov edx, dword [esi + 0xa0]
push edx
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
push edi
call fcn.0042e3f0
add esp, 4
push edi
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov ebp, dword [sym.imp.gdi32.dll_SelectObject]
mov ebx, eax
mov eax, dword [esi + 0xa4]
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0xcc0020
mov dword [esi + 0xa4], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push ebx
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
push ecx
push edi
call dword [sym.imp.gdi32.dll_BitBlt]
mov eax, dword [esi + 0xa4]
push eax
push ebx
call ebp
push edi
mov dword [esi + 0xa4], eax
call fcn.0042e420
add esp, 4
push ebx
call dword [sym.imp.gdi32.dll_DeleteDC]
mov ecx, dword [esi + 0xa0]
push edi
push ecx
call dword [sym.imp.user32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret