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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0x78]
test ecx, ecx
jne 0x506065
xor eax, eax
jmp 0x506414
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
ja case.default.0x506082
mov ecx, dword [ebp - 0x48]
jmp dword [ecx*4 + 0x506424]
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0xa8], 0
je 0x5060a3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x4c], ecx
jmp 0x5060ac
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x84], ecx
jmp case.default.0x506082
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0xa8], 0
je 0x5060e0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x9c]
mov dword [ebp - 0x54], ecx
jmp 0x5060e9
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x84], ecx
jmp case.default.0x506082
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0xa8], 0
je 0x50611a
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x50], ecx
jmp 0x506123
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x84], ecx
jmp case.default.0x506082
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0xa8], 0
je 0x506154
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xa4]
mov dword [ebp - 0x44], ecx
jmp 0x50615d
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x84], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
jne 0x506185
xor eax, eax
jmp 0x506414
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x7c], 0
je 0x5061ee
mov ecx, dword [ebp - 0x38]
add ecx, 0x3c
call fcn.005047d0
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x64], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x60], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xb8]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xb4]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x64]
add edx, dword [ecx + 0xb0]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x68]
add ecx, dword [eax + 0xac]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00504fa0
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.00419090
movzx ecx, al
test ecx, ecx
jne 0x50640f
push 1
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x84]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebp - 0x38]
add ecx, 0x3c
call fcn.005047d0
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0xbc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc0]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x80], 0
je 0x50636f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x2c]
or edx, 0x400
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.004188e0
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.0041b040
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x38]
add eax, 0x88
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov edx, dword [ebp - 0x30]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x28]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x2c]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.004188e0
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.0041b040
push eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x50640f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x2c]
or edx, 0x400
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.004188e0
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.0041b040
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x38]
add eax, 0x88
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x2c]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.004188e0
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x60
call fcn.0041b040
push eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 4