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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445d50
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4561c4]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x4561c4]
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 0x408c6c
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
cmp byte [edi + 0xf0], 0
mov dword [esp + 0x74], eax
je 0x40872c
mov eax, dword [edi + 0xec]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
jmp 0x40872e
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [edi + 0xa1], 0
mov dword [esp + 0x44], eax
je 0x40874b
mov ecx, dword [edi + 0xe8]
push ecx
jmp 0x408752
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.00408de0
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.00401990
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 0x4087e4
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 0x408a58
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 0x408c22
jmp 0x408864
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 0x4089ed
sub ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x408894
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
lea eax, [edi + 0xa8]
push eax
lea esi, [esp + 0x5c]
call fcn.00405620
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 1
call fcn.00401990
mov esi, 8
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], esi
jb 0x4088e0
mov eax, dword [esp + 0x5c]
push eax
call fcn.0042bcf0
add esp, 4
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x4088f7
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 0x40893b
mov eax, dword [esp + 0x28]
inc dword [esp + 0x24]
inc eax
cmp eax, dword [edi + 0xbc]
mov dword [esp + 0x28], eax
jl 0x408890
jmp 0x4089ed
cmp dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], 0
jne 0x4089ed
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x7c]
push edx
dec ecx
xor edx, edx
lea esi, [esp + 0x5c]
call fcn.00405620
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 2
call fcn.00401990
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x40899f
mov eax, dword [esp + 0x5c]
push eax
call fcn.0042bcf0
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
mov ebx, 0x44ad30
lea esi, [esp + 0x5c]
call fcn.004057f0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 3
call fcn.00401990
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x4089e9
mov edx, dword [esp + 0x5c]
push edx
call fcn.0042bcf0
add esp, 4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x408a05
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 0x408c22
cmp dword [esp + 0x1c], 0
jg 0x408860
jmp 0x408c22
cmp byte [edi + 0x100], 0
mov edx, dword [esp + 0x50]
je 0x408a8f
mov eax, dword [edi + 0x104]
mov ecx, dword [esp + 0x48]
test eax, eax
jle 0x408a85
mov esi, edx
sub esi, ecx
cmp esi, eax
jle 0x408a85
mov ecx, dword [edi + 4]
add ecx, eax
mov dword [edi + 0xc], ecx
jmp 0x408a8f
mov eax, dword [edi + 4]
sub eax, ecx
add eax, edx
mov dword [edi + 0xc], eax
cmp edx, dword [edi + 0xc]
jle 0x408bb7
xor ecx, ecx
cmp dword [edi + 0xbc], ecx
mov dword [esp + 0x18], ecx
jle 0x408bb7
jmp 0x408ab4
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x408ad0
push 3
mov eax, 0x44ad30
lea esi, [esp + 0x80]
call fcn.00401b20
jmp 0x408b64
lea eax, [edi + 0xa8]
push eax
xor edx, edx
lea esi, [esp + 0x5c]
call fcn.00405620
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 4
call fcn.00401990
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x408b16
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0042bcf0
add esp, 4
lea edx, [esp + 0x7c]
push edx
mov ebx, 0x44ad30
lea esi, [esp + 0x5c]
call fcn.004057f0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 5
call fcn.00401990
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x408b60
mov eax, dword [esp + 0x5c]
push eax
call fcn.0042bcf0
add esp, 4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x408b7c
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 0x408bb7
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [edi + 0xbc]
mov dword [esp + 0x18], eax
jl 0x408ab0
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 0x408c06
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 0x408c6c
mov eax, dword [esp + 0x80]
push eax
call fcn.0042bcf0
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.0042bcfb
mov esp, ebp
pop ebp
ret 4