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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc0]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x1c], ebx
je 0x4c970f
mov edx, dword [esi]
push 0xfffffffffffffff6
push edx
call dword [sym.imp.USER32.dll_GetClassLongA]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebp
mov dword [esp + 0x54], ebp
je 0x4c91e7
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x54], eax
mov ecx, dword [esi]
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
lea edx, [esp + 0x84]
push edx
push ebx
call dword [sym.imp.USER32.dll_FillRect]
fild dword [esi + 0xc]
fst qword [esp + 0x38]
fld qword [0x62c5b8]
fxch st(1)
call fcn.005fbb50
fstp qword [esp + 0x78]
fld qword [esp + 0x38]
fchs
fld qword [0x62c5b8]
fxch st(1)
call fcn.005fbb50
fstp qword [esp + 0x38]
call fcn.0052156b
fmul qword [esp + 0x78]
mov edi, dword [esi + 0x5c]
sub edi, dword [esi + 0x58]
fmul qword [0x628560]
mov ecx, ebp
sar edi, 2
mov dword [esp + 0x5c], edi
fstp qword [esp + 0xb8]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov bl, 0
mov dword [esp + 0x20], ecx
je 0x4c92b6
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x4c92a7
mov eax, dword [ecx + 0x20]
cmp eax, dword [ecx + 0x24]
je 0x4c92a7
test bl, bl
mov edx, dword [eax]
mov ebp, dword [eax + 4]
je 0x4c929d
mov ecx, edx
sub ecx, dword [esp + 0x40]
mov eax, ebp
sbb eax, dword [esp + 0x44]
test eax, eax
jg 0x4c92a7
jl 0x4c929d
test ecx, ecx
jae 0x4c92a7
mov bl, 1
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebp
mov ecx, dword [esp + 0x20]
add ecx, 1
cmp ecx, edi
mov dword [esp + 0x20], ecx
jb 0x4c926c
mov eax, dword [esp + 0xc8]
cdq
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
sub esp, 8
fmul qword [esp + 0x40]
fstp qword [esp]
call fcn.00519e5d
mov ebx, eax
mov eax, dword [esi + 0x44]
add esp, 8
mov ebp, edx
cdq
push edx
sub ebx, 1
push eax
sbb ebp, 0
push ebp
push ebx
call fcn.005f9f40
mov edi, dword [esp + 0x1c]
sub ebx, eax
push 8
sbb ebp, edx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
fild qword [esp + 0x30]
fmul qword [esp + 0x78]
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fist dword [esp + 0x20]
fild dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fsubp st(1)
fstp dword [esp + 0x20]
cmp dword [esp + 0x20], 0x80000001
adc eax, 0xffffffff
sub eax, dword [esi + 0x38]
mov edi, eax
mov eax, dword [esp + 0xd0]
cmp edi, eax
jge 0x4c9418
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x6c], edx
push 0x12
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
push edx
lea ecx, [edi + 1]
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], ecx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
cdq
add ebx, eax
adc ebp, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
sub esp, 8
fild qword [esp + 0x38]
lea edx, [esp + 0x108]
fst qword [esp + 0x40]
fmul qword [0x628510]
fstp qword [esp]
push ecx
push str._.fs
push edx
call fcn.005f83e4
lea eax, [esp + 0x114]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4c93e5
mov edx, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esi + 0x14]
push eax
lea eax, [esp + 0x104]
push eax
sub ecx, 2
push ecx
add edi, 2
push edi
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
fld qword [esp + 0x38]
jmp 0x4c931f
mov eax, dword [esp + 0x1c]
push 0
push eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
xor eax, eax
cmp dword [esp + 0x5c], eax
mov dword [esp + 0x78], eax
jbe 0x4c96e8
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x4c96ce
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
sub eax, edi
sar eax, 5
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], 0
je 0x4c96ce
add edi, 8
jmp 0x4c9470
cmp dword [edi + 0xc], 0xffffffff
je 0x4c96b6
mov eax, dword [esp + 0x40]
mov edx, dword [edi - 8]
mov ecx, dword [esp + 0x44]
mov ebx, dword [edi - 4]
sub edx, eax
mov dword [esp + 0x90], edx
mov edx, dword [edi]
sbb ebx, ecx
sub edx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x94], ebx
fild qword [esp + 0x90]
sbb eax, ecx
fld qword [esp + 0xb8]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
fmul st(1), st(0)
fild qword [esp + 0x98]
fmulp st(1)
fstp qword [esp + 0x20]
fsub qword [0x62ffe8]
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fld st(0)
fistp qword [esp + 0xb0]
fild qword [esp + 0xb0]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
fsubrp st(1)
fstp dword [esp + 0x64]
cmp dword [esp + 0x64], 0x80000001
sbb eax, 0xffffffff
sbb edx, 0xffffffff
fld qword [esp + 0x20]
cdq
fsub qword [0x62ffe8]
mov ebp, eax
sub ebp, dword [esi + 0x38]
mov ecx, edx
sbb ecx, dword [esi + 0x3c]
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fld st(0)
fistp qword [esp + 0x68]
fild qword [esp + 0x68]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
fsubrp st(1)
fstp dword [esp + 0x60]
cmp dword [esp + 0x60], 0x80000001
sbb eax, 0xffffffff
sbb edx, 0xffffffff
cdq
sub eax, dword [esi + 0x38]
mov ebx, edx
sbb ebx, dword [esi + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xd0]
cdq
cmp ecx, edx
jg 0x4c96ce
jl 0x4c9578
cmp ebp, eax
jae 0x4c96ce
mov eax, dword [esp + 0xc8]
cdq
cmp ebx, edx
jl 0x4c96b6
jg 0x4c9594
cmp dword [esp + 0x38], eax
jbe 0x4c96b6
mov eax, ebp
cdq
cmp eax, ebp
jne 0x4c95a7
cmp edx, ecx
jne 0x4c95a7
mov ecx, ebp
mov dword [esp + 0x20], ecx
jmp 0x4c95bc
mov edx, ecx
sar edx, 0x1f
sar ecx, 0x1f
mov eax, edx
xor eax, 0x7fffffff
mov dword [esp + 0x20], eax
mov ecx, eax
mov ebp, dword [esp + 0x38]
mov eax, ebp
cdq
cmp eax, ebp
jne 0x4c95cb
cmp edx, ebx
je 0x4c95db
mov eax, ebx
sar eax, 0x1f
mov ebp, eax
sar ebx, 0x1f
xor ebp, 0x7fffffff
cmp ebp, ecx
jle 0x4c96b6
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
add eax, 0x14
push eax
push ebp
push edx
push ecx
push ebx
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x68]
mov ecx, dword [ecx + eax*4]
mov edx, ebp
sub edx, dword [esp + 0x20]
cmp edx, 4
jle 0x4c96b6
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
sub edx, eax
cmp edx, 4
jle 0x4c96b6
mov edx, dword [esp + 0x20]
add eax, 2
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffffe
mov dword [esp + 0xac], eax
mov eax, dword [edi + 0x10]
add edx, 2
add ebp, 0xfffffffe
test eax, eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], ebp
je 0x4c9690
push eax
push ecx
lea ebp, [esi + 0x4c]
push str._s___u_
push ebp
call fcn.0051901f
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
add esp, 0x10
sub edx, dword [ebp]
push 0x824
lea ecx, [esp + 0xa4]
push ecx
push edx
push eax
jmp 0x4c96af
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4c9695
push 0x824
lea edx, [esp + 0xa4]
push edx
sub eax, ebp
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x58]
add eax, 1
add edi, 0x20
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x58], eax
jb 0x4c9470
mov eax, dword [esp + 0x78]
add dword [esp + 0x2c], 0x14
add eax, 1
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
jb 0x4c9439
cmp dword [esp + 0x54], 0
je 0x4c96fe
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi]
lea edx, [esp + 0xc0]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret