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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba8ac
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x1c], edi
call edx
cmp dword [ebx + 0x5d8], 0
mov dword [esp + 0x18], eax
jne 0x4581c5
push 0x58
lea eax, [esp + 0x6c]
push 0
push eax
mov dword [esp + 0x70], 0
call fcn.004a1210
mov ecx, dword [ebx + 0x1e8]
add esp, 0xc
push edi
lea esi, [esp + 0x68]
call fcn.00447b80
cmp dword [ebx + 0x5e8], 0
mov eax, dword [ebx + 0x5d4]
mov ecx, dword [ebx + 0x1c8]
mov dl, byte [ebx + 0x5e0]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov al, byte [ebx + 0x5e4]
mov byte [esp + 0x7e], 3
mov byte [esp + 0x7b], 1
mov dword [esp + 0x64], ecx
mov byte [esp + 0x78], dl
mov byte [esp + 0x79], al
je 0x4581aa
cmp dword [esp + 0x18], 1
jne 0x4581aa
mov dword [esp + 0x74], 0x2bc
jmp 0x4581b4
mov ecx, dword [ebx + 0x1cc]
mov dword [esp + 0x74], ecx
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebx + 0x5d8], eax
mov eax, dword [ebx + 0x5d8]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
lea esi, [ebx + 0x5dc]
push eax
mov ecx, esi
mov dword [esp + 0xdc], 0
call fcn.00408830
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx + 0x1c0], 0
je 0x4582ce
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004020a0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0x4c3af6
mov ecx, esi
mov dword [esp + 0xdc], 1
call fcn.00408630
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x14], 0
jle 0x458290
push 0x4cc78c
call fcn.00408160
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
cmp eax, dword [edx - 0xc]
mov dword [esp + 0x14], eax
jl 0x458274
push edi
push ebx
call fcn.00443810
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00408830
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4582ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x458308
cmp dword [ebx + 0x5a0], 0
je 0x4582f1
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebx + 0x1d4]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [ebx + 0x1dc]
push edx
jmp 0x458374
cmp eax, 2
jne 0x458326
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebx + 0x1d0]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x45837b
cmp eax, 3
jne 0x458344
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebx + 0x1e0]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x45837b
test eax, eax
je 0x45834d
cmp eax, 5
jne 0x45837b
cmp dword [ebx + 0x5a0], 0
je 0x45835f
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [ebx + 0x1e4]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0x1dc]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc4]
mov ecx, ebx
call eax
test eax, eax
jne 0x458397
push 0xff
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0xac]
mov ecx, dword [ebx + 0xa8]
sub eax, 0xffffff80
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x18], ecx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x4583cb
push 0
mov ecx, esi
call fcn.00402050
mov eax, dword [ebx + 0x5c4]
cmp dword [ebx + 0x18c], eax
jle 0x4583e4
test eax, eax
jle 0x4583e4
dec eax
mov dword [ebx + 0x18c], eax
mov eax, dword [ebx + 0x5bc]
test eax, eax
jne 0x458408
mov eax, dword [ebx + 0x5dc]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x45858f
jmp 0x45859d
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea esi, [eax + 8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov ecx, 7
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
add eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
add ecx, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x634]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
call fcn.00498c2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x458585
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xd8], 2
mov ecx, dword [ebx + 0x640]
cmp dword [ecx - 0xc], 0
lea eax, [ebx + 0x640]
jne 0x4584e2
lea edx, [esp + 0x24]
push edx
call fcn.00458f00
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], 3
call fcn.00408830
mov byte [esp + 0xd8], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4584ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4584ec
push eax
lea ecx, [esp + 0x14]
call fcn.00408830
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov eax, dword [esp + 0x40]
mov ecx, dword [esi - 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
push 0
push ecx
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
push esi
sar eax, 1
lea ecx, [esp + 0x3c]
push ecx
sub eax, edx
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 4
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
lea eax, [esi - 0x10]
mov dword [esp + 0xd8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458569
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], 0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
jne 0x458404
mov edi, dword [esp + 0x1c]
jmp 0x4583ee
push 0x80004005
call fcn.004010d0
push ecx
push eax
call fcn.0049df12
add esp, 8
test eax, eax
jl 0x4585ef
mov ecx, dword [ebx + 0x5dc]
cmp eax, dword [ecx - 8]
jg 0x4585ef
mov dword [ecx - 0xc], eax
mov edx, dword [ebx + 0x5dc]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [esp + 0x28]
push edx
push edi
mov dword [ebx + 0x1c0], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0049dc2a
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.004010d0
int3