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

Disassembly:
sub esp, 0x68
push ebx
push edi
push 0
push 0
push 0x147
mov ebx, ecx
push 0x8f
push ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edi, eax
test edi, edi
jl 0x43742a
cmp edi, 0x1e
jge 0x43742a
push esi
mov ecx, edi
call fcn.00435e00
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x437429
lea eax, [esp + 0x54]
push eax
push 0x91
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea ecx, [esp + 0x58]
push ecx
push ebx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
add edx, 2
push edx
mov edx, dword [esp + 0x58]
add eax, 2
push eax
add ecx, 0xfffffffe
push ecx
add edx, 0xfffffffe
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x43704e
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [0x5c9db0]
imul edi, edi, 0x74
mov eax, dword [edi + 0x5c8fc0]
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
push ebp
push ecx
push 1
push 0
mov dword [esp + 0x48], eax
call edi
mov edx, dword [0x5c9db4]
push edx
push 1
push 0
mov dword [esp + 0x34], eax
call edi
mov dword [esp + 0x24], eax
mov eax, dword [0x5c9dc0]
push eax
push 1
push 0
call edi
mov ecx, dword [0x5c9db8]
push ecx
push 1
push 0
mov dword [esp + 0x2c], eax
call edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_MoveToEx]
mov ebx, dword [sym.imp.GDI32.dll_LineTo]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
nop
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x5c]
push eax
xor edx, edx
call fcn.00436ea0
test eax, eax
mov dword [esp + 0x18], eax
jl 0x4373d4
mov ecx, dword [esp + 0x28]
push ecx
push esi
call edi
mov edx, dword [esp + 0x64]
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
push edx
push eax
push esi
call ebp
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ecx
push edx
push esi
call ebx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push esi
call ebx
mov edx, dword [esp + 0x10]
push edx
push esi
call edi
mov eax, dword [esp + 0x20]
push eax
push esi
call edi
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
push 0
dec ecx
push ecx
inc edx
push edx
push esi
mov dword [esp + 0x20], eax
call ebp
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
inc eax
push eax
inc ecx
push ecx
push esi
call ebx
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
inc edx
push edx
dec eax
push eax
push esi
call ebx
mov ecx, dword [esp + 0x10]
push ecx
push esi
call edi
mov edx, dword [esp + 0x24]
push edx
push esi
call edi
mov ecx, dword [esp + 0x60]
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
push eax
push ecx
push esi
call ebp
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
push edx
push eax
push esi
call ebx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
push ecx
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call edi
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call edi
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
push 0
inc edx
push edx
dec eax
push eax
push esi
call ebp
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
dec ecx
push ecx
dec edx
push edx
push esi
call ebx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
dec eax
push eax
inc ecx
push ecx
push esi
call ebx
mov edx, dword [esp + 0x10]
push edx
push esi
call edi
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
add eax, 2
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x64]
add ecx, 2
dec edx
dec eax
mov dword [esp + 0x74], eax
cmp dword [esp + 0x30], 1
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], edx
jne 0x43733d
push 0x5a6034
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0x48
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push esi
mov dword [esp + 0x40], eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x50]
push 0x5a4998
push edx
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x58]
add esp, 0xc
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x437280
sub eax, ecx
lea ecx, [esp + 0x44]
push ecx
push eax
lea edx, [esp + 0x54]
push edx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
sub eax, ecx
mov ecx, dword [esp + 0x48]
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x6c]
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
push 0
sar eax, 1
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
lea eax, [esp + 0x4c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4372f0
push 0
sub eax, ecx
mov ecx, dword [esp + 0x70]
push eax
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x78]
add edx, ecx
mov ecx, dword [esp + 0x20]
push 6
push edx
add ecx, eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0x34]
push edx
push esi
call edi
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4373d4
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx*4 + 0x5c8ed8]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax*4 + 0x5c8ed8]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push 0
push 0
push 0x5a4bec
lea edx, [esp + 0x74]
push edx
push 6
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
dec edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x64]
add edx, 2
dec eax
add ecx, 2
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x3c]
xor eax, eax
cmp edx, ecx
sete al
lea edx, [esp + 0x68]
mov ecx, esi
push eax
mov eax, dword [0x5c9dac]
push edx
mov edx, dword [0x5c9dc0]
push eax
call fcn.00435e40
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x10
mov dword [esp + 0x14], eax
jl 0x4370c0
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x28]
push ecx
call edi
mov ebx, dword [esp + 0x40]
test ebx, ebx
pop ebp
je 0x43741d
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push ebx
call edi
mov edx, dword [esp + 0x28]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop edi
pop ebx
add esp, 0x68
ret