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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x4f0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xc0]
push eax
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebp, eax
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x58], ebp
je 0x4c8b42
mov edx, dword [ebx + 4]
push 0xfffffffffffffff6
push edx
call dword [sym.imp.USER32.dll_GetClassLongA]
mov esi, eax
mov eax, dword [ebx + 8]
cmp eax, edi
mov dword [esp + 0x50], edi
je 0x4c85fd
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x50], eax
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xb0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
lea edx, [esp + 0xb4]
push edx
push ebp
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x4c8b1e
mov edx, dword [eax + 0x2c]
cmp edx, edi
jne 0x4c8639
xor esi, esi
mov dword [esp + 0x2c], esi
jmp 0x4c8655
mov ecx, dword [eax + 0x30]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], eax
mov esi, eax
push 1
push ebp
mov dword [esp + 0x38], edi
call dword [sym.imp.GDI32.dll_SetBkMode]
test esi, esi
jle 0x4c86b8
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov edi, edi
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x2c]
add eax, dword [esp + 0x28]
mov esi, dword [eax]
test esi, esi
je 0x4c86ac
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c8685
lea ecx, [esp + 0x60]
push ecx
sub eax, edx
push eax
push esi
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x60]
cmp eax, edi
jle 0x4c86ac
mov dword [esp + 0x30], eax
mov edi, eax
add dword [esp + 0x28], 0x18
sub dword [esp + 0x24], 1
jne 0x4c8670
mov eax, dword [esp + 0xb8]
mov esi, dword [ebx + 0x14]
lea ecx, [edi + 0x10]
sub eax, ecx
mov dword [esp + 0x5c], eax
add esi, esi
mov eax, esi
sub eax, dword [ebx + 0x18]
push 0
cdq
sub eax, edx
sar eax, 1
push ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x2c]
xor edi, edi
add ecx, 1
imul ecx, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edi
jmp 0x4c8706
mov ecx, dword [esp + 0x3c]
mov eax, 0x66666667
imul dword [esp + 0x24]
mov eax, dword [esp + 0x30]
sar edx, 2
mov esi, edx
add eax, 0x10
shr esi, 0x1f
add esi, edx
add esi, eax
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebx + 0x10]
mov eax, 0x64
shl eax, cl
lea edx, [esi + 1]
mov dword [esp + 0x68], edx
mov dword [esp + 0x60], esi
imul eax, edi
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
push eax
lea eax, [esp + 0x94]
push str._d_ms
push eax
mov dword [esp + 0x70], 0
call fcn.005f83e4
add esp, 0xc
push 0
push 0
push 0x62aa66
lea ecx, [esp + 0x6c]
push ecx
push 6
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutA]
lea eax, [esp + 0x90]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4c8790
push 0
sub eax, ecx
push eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x98]
push edx
push 0
push 0
push eax
add esi, 4
push esi
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x24], ecx
add edi, 1
cmp edi, 0xa
jl 0x4c8702
push 0
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 0x58]
mov edx, dword [edi + 0x5c]
mov ecx, dword [ebx + 0x10]
call fcn.005fb380
mov esi, dword [edi + 0x60]
mov edi, dword [edi + 0x64]
mov ecx, dword [esp + 0x2c]
shrd eax, edx, 6
shr edx, 6
sub esi, eax
sbb edi, edx
test ecx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
jle 0x4c8a14
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
lea edi, [edx + eax]
sub eax, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ecx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + 0x2c]
add ebx, dword [esp + 0x24]
cmp dword [ebx], 0
je 0x4c8a00
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], edx
mov edi, dword [ebx]
mov dword [esp + 0x7c], eax
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4c8882
push 0
sub eax, ecx
push eax
mov eax, dword [esp + 0x34]
push edi
lea edx, [esp + 0x8c]
push edx
push 4
push eax
push 0
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
cmp edi, ebx
mov dword [esp + 0x78], ebx
je 0x4c89f0
jmp 0x4c88c0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
sub eax, esi
sbb ecx, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
js 0x4c89e5
jg 0x4c88e4
test eax, eax
jb 0x4c89e5
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi]
cdq
mov ebx, edx
mov edx, dword [edi + 4]
sub ecx, esi
sbb edx, dword [esp + 0x74]
push ebx
mov ebp, eax
push ebp
push edx
push ecx
call fcn.005f8550
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.005f8590
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0x40], 0
lea eax, [esp + 0x3c]
jg 0x4c892a
lea eax, [esp + 0x40]
mov esi, dword [eax]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
push ebx
add eax, 0x10
push ebp
add esi, eax
mov eax, dword [esp + 0x68]
push edx
push eax
call fcn.005f8550
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.005f8590
mov ecx, dword [esp + 0x30]
add ecx, 0x10
add eax, ecx
lea ecx, [esi + 1]
cmp ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
lea ebp, [esp + 0x40]
jl 0x4c8977
lea ebp, [esp + 0x3c]
mov edx, dword [edi + 0x10]
mov ebx, dword [esp + 0x58]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x28]
mov ebp, dword [edi + 0x14]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
mov eax, ebp
mov dword [esp + 0x98], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x9c], edx
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4c89b5
push 0
sub eax, ecx
mov ecx, dword [esp + 0x30]
push eax
push ebp
lea eax, [esp + 0x9c]
push eax
push 6
push ecx
push esi
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov esi, dword [esp + 0x70]
mov ebp, ebx
mov ebx, dword [esp + 0x78]
add edi, 0x18
cmp edi, ebx
jne 0x4c88c0
mov eax, dword [esp + 0x54]
add dword [esp + 0x28], eax
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
add dword [esp + 0x24], 0x18
sub dword [esp + 0x38], 1
mov ebx, dword [esp + 0x34]
jne 0x4c8836
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x38]
mov esi, dword [eax + 0x48]
mov edx, dword [esp + 0xb8]
add edx, edx
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
sar ecx, 5
add eax, edx
test ecx, ecx
mov dword [esp + 0x44], eax
jbe 0x4c8b1e
mov dword [esp + 0x34], ecx
lea ebx, [ebx]
mov edi, dword [esi]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c8a57
push 0
sub eax, edx
push eax
push edi
mov edi, dword [esp + 0x34]
push 0
push 0
push edi
push 0
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esi + 8]
sub eax, 0
je 0x4c8ab9
sub eax, 1
je 0x4c8a8f
mov byte [esp + 0x100], 0
jmp 0x4c8ad8
fld qword [esi + 0x10]
sub esp, 0x10
fsub qword [esi + 0x18]
lea edx, [esp + 0x110]
fstp qword [esp + 8]
fld qword [esi + 0x10]
fstp qword [esp]
push str._g___g_
push edx
call fcn.005f83e4
add esp, 0x18
jmp 0x4c8ad8
mov eax, dword [esi + 0x10]
mov ecx, eax
sub ecx, dword [esi + 0x18]
lea edx, [esp + 0x100]
push ecx
push eax
push str._u___d_
push edx
call fcn.005f83e4
add esp, 0x10
lea eax, [esp + 0x100]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c8ae2
mov ecx, dword [esp + 0x44]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x108]
push eax
push 0
push 0
push edi
push ecx
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add edi, dword [ebx + 0x14]
add esi, 0x20
sub dword [esp + 0x34], 1
mov dword [esp + 0x28], edi
jne 0x4c8a50
cmp dword [esp + 0x50], 0
je 0x4c8b30
mov edx, dword [ebx + 8]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xc0]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret