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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444250
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4531c4]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x4531c4]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp byte [edi + 0xa0], 0
mov dword [esp + 0x20], ebx
je 0x408cec
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
cmp byte [edi + 0xf0], 0
mov dword [esp + 0x74], eax
je 0x4087ac
mov eax, dword [edi + 0xec]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
jmp 0x4087ae
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [edi + 0xa1], 0
mov dword [esp + 0x44], eax
je 0x4087cb
mov ecx, dword [edi + 0xe8]
push ecx
jmp 0x4087d2
mov edx, dword [edi + 0x134]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, edi
mov dword [esp + 0x3c], eax
call fcn.00408e60
mov eax, dword [edi + 0xf4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
xor esi, esi
push 0xffffffffffffffff
mov dword [esp + 0x7c], eax
mov word [esp + 0x84], cx
lea eax, [edi + 0xa8]
push esi
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], esi
call fcn.00401a20
mov dword [esp + 0xa8], esi
cmp dword [esp + 0x94], 8
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jae 0x408864
lea eax, [esp + 0x80]
mov edx, dword [esp + 0x90]
push 0x400
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
cmp byte [edi + 0x114], 0
mov esi, eax
mov dword [esp + 0x40], esi
je 0x408ad8
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
mov ecx, dword [edi + 0x118]
add eax, ecx
cdq
add ecx, esi
idiv ecx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x38], edx
mov ecx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], eax
add eax, esi
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x408ca2
jmp 0x4088e4
mov eax, dword [esp + 0x18]
lea ecx, [eax + 1]
cmp ecx, dword [edi + 0xbc]
mov byte [esp + 0x17], 1
mov dword [esp + 0x28], ecx
jge 0x408a6d
sub ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x408914
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
lea eax, [edi + 0xa8]
push eax
lea esi, [esp + 0x5c]
call fcn.004056d0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 1
call fcn.00401a20
mov esi, 8
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], esi
jb 0x408960
mov eax, dword [esp + 0x5c]
push eax
call fcn.0042a3f0
add esp, 4
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x408977
lea eax, [esp + 0x80]
mov edx, dword [esp + 0x90]
push 0x400
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x50]
add eax, 0x10
cmp eax, dword [edi + 0xc]
jg 0x4089bb
mov eax, dword [esp + 0x28]
inc dword [esp + 0x24]
inc eax
cmp eax, dword [edi + 0xbc]
mov dword [esp + 0x28], eax
jl 0x408910
jmp 0x408a6d
cmp dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], 0
jne 0x408a6d
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x7c]
push edx
dec ecx
xor edx, edx
lea esi, [esp + 0x5c]
call fcn.004056d0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 2
call fcn.00401a20
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x408a1f
mov eax, dword [esp + 0x5c]
push eax
call fcn.0042a3f0
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
mov ebx, 0x448d18
lea esi, [esp + 0x5c]
call fcn.00405870
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 3
call fcn.00401a20
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x408a69
mov edx, dword [esp + 0x5c]
push edx
call fcn.0042a3f0
add esp, 4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x408a85
lea eax, [esp + 0x80]
mov ecx, dword [edi + 0xfc]
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [edi + 0x118]
add edx, dword [esp + 0x40]
lea eax, [esp + 0x2c]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
dec dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
jne 0x408ca2
cmp dword [esp + 0x1c], 0
jg 0x4088e0
jmp 0x408ca2
cmp byte [edi + 0x100], 0
mov edx, dword [esp + 0x50]
je 0x408b0f
mov eax, dword [edi + 0x104]
mov ecx, dword [esp + 0x48]
test eax, eax
jle 0x408b05
mov esi, edx
sub esi, ecx
cmp esi, eax
jle 0x408b05
mov ecx, dword [edi + 4]
add ecx, eax
mov dword [edi + 0xc], ecx
jmp 0x408b0f
mov eax, dword [edi + 4]
sub eax, ecx
add eax, edx
mov dword [edi + 0xc], eax
cmp edx, dword [edi + 0xc]
jle 0x408c37
xor ecx, ecx
cmp dword [edi + 0xbc], ecx
mov dword [esp + 0x18], ecx
jle 0x408c37
jmp 0x408b34
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x408b50
push 3
mov eax, 0x448d18
lea esi, [esp + 0x80]
call fcn.00401bb0
jmp 0x408be4
lea eax, [edi + 0xa8]
push eax
xor edx, edx
lea esi, [esp + 0x5c]
call fcn.004056d0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 4
call fcn.00401a20
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x408b96
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0042a3f0
add esp, 4
lea edx, [esp + 0x7c]
push edx
mov ebx, 0x448d18
lea esi, [esp + 0x5c]
call fcn.00405870
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 5
call fcn.00401a20
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x408be0
mov eax, dword [esp + 0x5c]
push eax
call fcn.0042a3f0
add esp, 4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x408bfc
lea eax, [esp + 0x80]
mov edx, dword [esp + 0x90]
push 0x400
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x50]
add eax, 0x10
cmp eax, dword [edi + 0xc]
jg 0x408c37
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [edi + 0xbc]
mov dword [esp + 0x18], eax
jl 0x408b30
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 8]
sub eax, ecx
sub eax, dword [esp + 0x40]
mov dword [esp + 0x34], edx
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x408c86
lea eax, [esp + 0x80]
mov ecx, dword [edi + 0xfc]
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x78]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x44]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x74]
push edx
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp dword [esp + 0x94], 8
jb 0x408cec
mov eax, dword [esp + 0x80]
push eax
call fcn.0042a3f0
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0042a3fb
mov esp, ebp
pop ebp
ret 4