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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0045c240
mov dword [esp + 0x48], eax
mov dword [0x66abec], eax
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x70]
lea eax, [edx - 2]
cdq
idiv dword [0x66ab54]
mov ebp, eax
inc ebp
mov dword [esp + 0x40], ebp
jns 0x45ec67
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov ebp, ecx
jmp 0x45ec69
xor ecx, ecx
mov edx, dword [esp + 0x7c]
mov edi, dword [ebx + 0x80]
or eax, 0xffffffff
mov dword [esp + 0x3c], edi
cmp edx, eax
mov dword [esp + 0x10], ecx
jne 0x45ec86
mov dword [esp + 0x7c], ecx
cmp dword [esp + 0x80], eax
jne 0x45ec99
lea eax, [ebp + 2]
mov dword [esp + 0x80], eax
cmp dword [0x5c6d7c], ecx
je 0x45ecaf
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x1c], eax
jmp 0x45ecb9
mov ecx, dword [0x5c6d80]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x78]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x5d833c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0xfc]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x90]
cmp ecx, eax
jge 0x45ed04
mov edx, dword [ebx + 0x94]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0xf8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
jmp 0x45ed46
mov dword [esp + 0x2c], eax
jle 0x45ed24
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0xf8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x45ed4a
mov ecx, dword [ebx + 0xf8]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x94]
cmp eax, ecx
jge 0x45ed42
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x45ed4a
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov edx, dword [ebx + 0x8c]
mov dword [esp + 0x34], 0
test edi, edi
mov dword [esp + 0x4c], edx
je 0x45f2f2
jmp 0x45ed6e
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x10], ebp
jge 0x45f2f2
mov eax, dword [0x5c8e38]
test eax, eax
je 0x45ee0a
mov eax, dword [0x5d825c]
test eax, eax
je 0x45ed98
mov eax, dword [ebx + 0x8c]
test eax, eax
jne 0x45ee0a
mov eax, dword [ebx + 0x88]
mov ecx, dword [esp + 0x34]
lea edx, [eax + ecx + 1]
lea eax, [esp + 0x54]
push edx
push 0x5c4d50
push eax
call fcn.00514f48
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xc0c0c0
push esi
mov edi, ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x66ab54]
lea ecx, [esp + 0x54]
imul edx, dword [esp + 0x10]
push edi
add edx, 2
push ecx
push edx
mov ecx, ebx
call fcn.0045c280
sub eax, edi
dec eax
imul eax, dword [0x66ab58]
add eax, 6
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov ecx, dword [edi + 0xc]
push eax
xor ebp, ebp
push ecx
push 0x5d8388
mov dword [esp + 0x24], ebp
mov dword [esp + 0x50], ebp
call fcn.00452160
mov edx, dword [ebx + 0x3c]
mov ecx, dword [edi + 4]
push edi
mov eax, dword [edx + 0x58]
push eax
push ecx
push 0x5d8388
call fcn.00451870
lea edx, [esp + 0x54]
lea eax, [esp + 0x94]
push edx
push eax
call fcn.004518c0
add esp, 0x24
test eax, eax
je 0x45f1de
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.00454d50
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x80]
add esp, 8
lea edi, [edx + 0x5d8388]
add edx, eax
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], edx
je 0x45f1ba
mov edx, dword [ebx + 0x8c]
mov ecx, ebp
sub ecx, edx
test ecx, ecx
jge 0x45eeb2
inc ebp
inc ecx
dec eax
inc edi
test eax, eax
jne 0x45ee95
mov dword [esp + 0x14], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], ebp
jmp 0x45f1ba
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], ebp
je 0x45f1ba
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
cmp ecx, edx
jl 0x45f1ba
cmp ecx, dword [esp + 0x80]
jg 0x45f1ba
mov edx, dword [ebx + 0x104]
test edx, edx
je 0x45f1a0
mov ecx, dword [ebx + 0x88]
mov edx, dword [esp + 0x34]
add ecx, edx
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jl 0x45f18c
cmp ecx, dword [esp + 0x30]
jg 0x45f18c
mov edx, dword [esp + 0x2c]
cmp ecx, edx
mov edx, dword [esp + 0x30]
jle 0x45ef4d
cmp ecx, edx
jge 0x45ef4d
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x78]
mov edx, ebp
push eax
mov eax, dword [ebx + 0x8c]
push edi
sub edx, eax
jmp 0x45f06a
mov edi, dword [esp + 0x2c]
cmp ecx, edi
jne 0x45eff8
cmp ecx, edx
je 0x45f000
mov edi, dword [esp + 0x20]
mov ecx, eax
sub edi, ebp
sub ecx, edi
test edi, edi
mov dword [esp + 0x28], ecx
jge 0x45ef7b
xor edi, edi
mov dword [esp + 0x28], eax
jmp 0x45efab
test ecx, ecx
jge 0x45ef89
mov edi, eax
mov dword [esp + 0x28], 0
test edi, edi
je 0x45efab
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push ecx
push edx
mov edx, dword [ebx + 0x8c]
mov eax, ebp
mov ecx, ebx
sub eax, edx
push eax
push esi
call fcn.0045f320
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45efe7
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea edx, [edi + ecx]
mov ecx, ebx
push edx
push eax
sub edi, dword [ebx + 0x8c]
add edi, ebp
push edi
push esi
call fcn.0045f320
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x45f1b6
cmp ecx, edx
jne 0x45f091
cmp ecx, edi
je 0x45f091
mov edi, dword [esp + 0x24]
mov ecx, eax
sub edi, ebp
sub ecx, edi
test edi, edi
jge 0x45f089
mov ecx, eax
xor edi, edi
test ecx, ecx
je 0x45f041
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [edi + edx]
mov edx, edi
push eax
push ecx
mov ecx, dword [ebx + 0x8c]
sub edx, ecx
mov ecx, ebx
add edx, ebp
push edx
push esi
call fcn.0045f320
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test edi, edi
je 0x45f078
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [ebx + 0x8c]
mov edx, ebp
push eax
sub edx, edi
mov ecx, dword [esp + 0x18]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.0045f320
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x45f1b6
test ecx, ecx
jge 0x45f01c
mov edi, eax
jmp 0x45f041
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov edx, ebp
sub edi, ecx
neg edx
lea ebp, [edx + ecx]
mov ecx, eax
sub ecx, edi
sub ecx, ebp
test ebp, ebp
mov dword [esp + 0x28], ecx
jge 0x45f0cd
mov ecx, dword [esp + 0x24]
xor ebp, ebp
lea edi, [edx + ecx]
test edi, edi
jge 0x45f0bf
xor edi, edi
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x28], ecx
jns 0x45f109
mov edi, eax
jmp 0x45f13c
test ecx, ecx
jge 0x45f0e7
mov edi, eax
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
sub edi, ebp
jns 0x45f0e7
mov ebp, eax
xor edi, edi
test ebp, ebp
je 0x45f10d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebp
push edx
push eax
sub ecx, dword [ebx + 0x8c]
push ecx
push esi
mov ecx, ebx
call fcn.0045f320
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x45f13c
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [edi + ebp]
add edx, ecx
mov ecx, edi
push edx
push eax
mov eax, dword [ebx + 0x8c]
sub ecx, eax
mov eax, dword [esp + 0x24]
add ecx, ebp
add ecx, eax
push ecx
push esi
mov ecx, ebx
call fcn.0045f320
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test edi, edi
je 0x45f17a
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edi
mov edi, dword [ebx + 0x8c]
lea eax, [edx + ebp]
mov edx, dword [esp + 0x1c]
sub ebp, edi
push eax
add ebp, edx
push ecx
push ebp
push esi
mov ecx, ebx
call fcn.0045f320
mov edx, dword [esp + 0x1c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebp, dword [esp + 0x18]
jmp 0x45f1b6
push eax
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [ebx + 0x8c]
mov ecx, ebp
push eax
sub ecx, edi
push ecx
jmp 0x45f1ae
push eax
push edi
mov edi, dword [ebx + 0x8c]
mov edx, ebp
sub edx, edi
push ecx
push edx
mov ecx, ebx
push esi
call fcn.0045f320
mov eax, dword [esp + 0x78]
add ebp, eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x20], ebp
call fcn.004518c0
add esp, 8
test eax, eax
jne 0x45ee5a
mov edi, dword [esp + 0x3c]
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x45f240
mov edx, dword [ebx + 0x88]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add eax, edx
cmp eax, ecx
jl 0x45f240
cmp eax, dword [esp + 0x30]
jge 0x45f240
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x10]
push 1
push 0x5c4f18
push ecx
mov ecx, dword [ebx + 0x8c]
sub ebp, ecx
mov ecx, ebx
push ebp
push esi
call fcn.0045f320
mov edx, dword [esp + 0x1c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x48]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push 0x5d8388
xor ebp, ebp
call fcn.00452160
mov edx, dword [ebx + 0x3c]
mov ecx, dword [edi + 4]
push edi
mov eax, dword [edx + 0x58]
push eax
push ecx
push 0x5d8388
call fcn.00451870
lea edx, [esp + 0x54]
lea eax, [esp + 0x94]
push edx
push eax
call fcn.004518c0
add esp, 0x24
test eax, eax
je 0x45f2a6
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x78]
push ecx
mov dword [0x5d8284], ebp
push edx
add ebp, eax
call fcn.004518c0
add esp, 8
test eax, eax
jne 0x45f284
mov eax, dword [0x5d825c]
test eax, eax
je 0x45f2d1
mov eax, dword [ebx + 0x8c]
mov ecx, dword [edi + 0x10]
cdq
idiv dword [esp + 0x48]
mov dword [ebx + 0x8c], 0
sub ecx, eax
mov eax, dword [esp + 0x10]
add eax, ecx
jmp 0x45f2d6
mov eax, dword [esp + 0x10]
inc eax
mov ecx, dword [esp + 0x34]
mov edi, dword [edi + 0x14]
inc ecx
mov dword [esp + 0x10], eax
test edi, edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edi
jne 0x45ed66
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
push esi
mov dword [ebx + 0x8c], edx
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc