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

Disassembly:
push 0xffffffffffffffff
push 0x4af80b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x4ce0a0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce0a0]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov eax, dword [esp + 0x188]
mov ebp, dword [esp + 0x18c]
push 8
mov edi, ebp
lea esi, [esp + 0x64]
mov dword [esp + 0x28], eax
mov ebx, 0xa
call fcn.0044dde0
xor edi, edi
mov dword [esp + 0x180], edi
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov esi, dword [esp + 0x190]
add esi, ebx
lea eax, [esi + 0x23]
mov dword [esp + 0x40], eax
add eax, ebx
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x148]
mov edx, dword [edi + 0x148]
mov dword [esp + 0x48], eax
lea eax, [edi + 0x144]
mov dword [esp + 0x4c], 1
mov ecx, dword [ecx]
mov dword [esp + 0x190], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], edx
jmp 0x4518ec
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea edx, [edi + 0x144]
cmp eax, edx
jne 0x4519f7
cmp ecx, dword [esp + 0x3c]
sete dl
test dl, dl
sete dl
test dl, dl
je 0x451a01
test eax, eax
je 0x4519f7
cmp ecx, dword [eax + 4]
je 0x4519fc
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + 0x5c]
fld dword [ecx + 8]
add eax, 4
push eax
call fcn.004a1cf0
push eax
push str.__d__s
mov eax, 0x104
lea edi, [esp + 0x78]
call fcn.00404070
add esp, 0xc
test eax, eax
je 0x451951
call fcn.00460810
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x451958
lea ecx, [esp + 0x28]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 4]
je 0x4519fc
mov eax, dword [eax + 0xc]
call fcn.00450700
mov edi, eax
mov ecx, edi
lea eax, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x451991
lea edx, [esp + 0x30]
push edx
sub ecx, eax
push ecx
push edi
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
add edx, ecx
lea eax, [esi + 0x23]
mov dword [esp + 0x50], eax
lea eax, [edx + eax + 0x1d]
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x10]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], eax
mov ebx, eax
push edx
mov eax, edx
push eax
call dword [sym.imp.USER32.dll_UnionRect]
lea edx, [esp + 0x18]
call fcn.00453550
cmp dword [esp + 0x18], 0
jne 0x4518e0
call fcn.00452e60
call fcn.004533c0
push 0
push 4
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [edi + 0xa0]
mov eax, dword [edi + 0x9c]
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call fcn.0044e180
mov ecx, dword [edi + 0x148]
mov ecx, dword [ecx]
mov edx, dword [edi + 0x148]
lea eax, [edi + 0x144]
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], 2
jmp 0x451a73
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x190]
mov edi, dword [esp + 0x24]
add edi, 0x144
cmp eax, edi
jne 0x4519f7
cmp ecx, dword [esp + 0x38]
sete dl
test dl, dl
sete dl
test dl, dl
je 0x451bfc
test eax, eax
je 0x4519f7
cmp ecx, dword [eax + 4]
je 0x4519fc
mov ebx, dword [ecx + 0x10]
mov edi, dword [ebx + 0x64]
mov eax, dword [esp + 0x20]
push 0
add eax, 8
push edi
push eax
lea ecx, [esi + 0x2d]
push ecx
push eax
lea eax, [esi + 0x23]
push eax
mov ecx, 1
mov edx, ebp
call fcn.0044e350
add esp, 0x18
push edi
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0x5c]
fld dword [eax + 8]
lea edx, [ebx + 4]
push edx
call fcn.004a1cf0
push eax
push str.__d__s
mov eax, 0x104
lea edi, [esp + 0x78]
call fcn.00404070
add esp, 0xc
test eax, eax
je 0x451b06
call fcn.00460810
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x6c]
push eax
push 0
push ecx
add esi, 0x2f
push esi
mov esi, ebp
call fcn.0044df00
lea eax, [esp + 0x7c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x451b27
sub eax, edx
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x74]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 4]
je 0x4519fc
mov eax, dword [eax + 0xc]
call fcn.00450700
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [edx + 0xa8]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x190]
push edi
push 0
push ecx
lea ecx, [edx + eax + 0x34]
push ecx
mov esi, ebp
call fcn.0044df00
mov eax, edi
add esp, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x451b98
lea edx, [esp + 0x30]
push edx
sub eax, esi
push eax
push edi
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
cmp byte [ebx + 0x60], 0
je 0x451bde
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
add eax, 3
push eax
mov eax, dword [esp + 0x194]
add edx, ecx
lea ebx, [edx + eax + 0x36]
mov ecx, ebp
call fcn.0044e3e0
add esp, 4
add dword [esp + 0x20], 0x10
lea edx, [esp + 0x18]
call fcn.00453550
cmp dword [esp + 0x18], 0
jne 0x451a60
jmp 0x4519f7
mov dword [esp + 0x180], 0xffffffff
lea esi, [esp + 0x60]
call fcn.0044de40
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00481ba7
add esp, 0x170
ret 0x18