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

Disassembly:
sub esp, 0xfc
push ebx
mov ebx, dword [esp + 0x104]
push ebp
push esi
test ebx, ebx
push edi
mov ebp, ecx
jne 0x1005c292
mov ecx, dword [ebp + 0x15c]
lea eax, [esp + 0xbc]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0xd0]
mov esi, dword [esp + 0xc4]
mov edi, dword [esp + 0xc8]
mov edx, eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
sub eax, esi
sub ecx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
push edx
mov dword [esp + 0x30], edx
mov esi, eax
mov edi, ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x2c]
push edi
push esi
push edx
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov dword [esp + 0x34], eax
push esi
push 0
lea eax, [esp + 0x44]
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp + 0x160]
lea edx, [esp + 0x38]
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x1005c2be
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [ebp + 0x1f0]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x188]
sub edx, esi
mov esi, dword [ebp + 0x1f4]
sub esi, ecx
cmp eax, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
jne 0x1005c49d
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xf0]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x90], 0x28
mov word [esp + 0x9c], 1
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
jbe 0x1005c49d
lea eax, [ebp + 0xc8]
mov ecx, dword [ebp + 0xc8]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x48]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x58], edx
call fcn.10060550
mov esi, dword [esp + 0x50]
mov ecx, 0xe
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x38], eax
add eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x80]
add ecx, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x100]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1005c480
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x1005c3f3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x5c]
push edx
push eax
push ebx
call fcn.10062290
jmp 0x1005c480
cmp eax, 2
jne 0x1005c480
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x1005c480
mov edx, dword [eax]
push 0xcc0020
mov dword [esp + 0x98], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x9c], ecx
mov dx, word [eax + 8]
mov word [esp + 0xa2], dx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x94]
push 0
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x9c]
add eax, ecx
push eax
mov eax, dword [esp + 0x44]
add edx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x1005c343
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x124]
lea ecx, [ebp + 0x124]
cmp eax, 1
jne 0x1005c4b6
push esi
push edx
push ebx
call fcn.10061020
mov eax, dword [esp + 0x110]
test eax, eax
jne 0x1005c51d
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
sub ecx, eax
push ebx
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp + 0x15c]
lea edx, [esp + 0xbc]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 0x14