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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x170
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0xa8]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
test edi, edi
je 0x4c4be6
push edi
call dword [sym.imp.GDI32.dll_SaveDC]
test eax, eax
mov dword [esp + 0xa4], eax
je 0x4c4bd4
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x5c], eax
jne 0x4c44d5
push 0x10
lea edx, [esp + 0xb4]
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x4c4bc5
mov ecx, dword [esi + 8]
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
fild dword [esi + 0x10]
fmul qword [0x62ffe8]
fld1
fdiv qword [esi + 0x28]
fild dword [esp + 0x70]
fsub st(2)
fmul st(1)
fadd qword [esi + 0x18]
fstp qword [esp + 0x90]
fild dword [esp + 0x78]
fsubrp st(2)
fmulp st(1)
fadd qword [esi + 0x18]
fstp qword [esp + 0x98]
fld qword [esp + 0x90]
fld st(0)
fistp qword [esp + 0x60]
fild qword [esp + 0x60]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
fsubp st(1)
fstp dword [esp + 0x40]
cmp dword [esp + 0x40], 0x80000001
adc eax, 0xffffffff
adc edx, 0xffffffff
mov ecx, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
fld qword [esp + 0x98]
fld st(0)
fistp qword [esp + 0x60]
fild qword [esp + 0x60]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
fsubrp st(1)
fstp dword [esp + 0x40]
cmp dword [esp + 0x40], 0x80000001
sbb eax, 0xffffffff
sbb edx, 0xffffffff
cdq
mov ebp, eax
xor eax, eax
cmp dword [esp + 0x4c], eax
mov ebx, edx
jg 0x4c4597
jl 0x4c458d
cmp ecx, eax
jae 0x4c4597
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov ecx, eax
mov edx, dword [esp + 0x4c]
push eax
push 5
push edx
push ecx
call fcn.005f9f40
sub dword [esp + 0x48], eax
push 0
push 5
sbb dword [esp + 0x54], edx
add ebp, 4
adc ebx, 0
push ebx
push ebp
call fcn.005f9f40
sub ebp, eax
mov eax, dword [esi + 0x64]
push eax
push edi
sbb ebx, edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x58]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0xffffff
push edi
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
fild dword [esi + 0x14]
sub esp, 8
fmul qword [0x62ffe8]
fld qword [esi + 0x20]
fchs
fmul qword [esi + 0x30]
fsubp st(1)
fstp qword [esp]
call fcn.00519e42
fild dword [esi + 0x14]
mov dword [esp + 0x5c], eax
fmul qword [0x62ffe8]
fld1
fsub qword [esi + 0x20]
fmul qword [esi + 0x30]
fsubp st(1)
fstp qword [esp]
call fcn.00519e42
mov edx, dword [esp + 0x7c]
add esp, 8
push 0
sub ebp, 1
push 5
sbb ebx, 0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x80]
push ebx
push ebp
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
call fcn.005f9f40
test eax, eax
mov dword [esp + 0x3c], eax
jge 0x4c468d
add eax, 5
mov dword [esp + 0x3c], eax
mov eax, ebp
mov ebp, ebx
cmp ebp, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebp
jl 0x4c47f0
jg 0x4c46b0
cmp eax, dword [esp + 0x48]
jb 0x4c47f0
nop
fild qword [esp + 0x60]
sub esp, 8
fsub qword [esi + 0x18]
fmul qword [esi + 0x28]
fild dword [esi + 0x10]
fmul qword [0x62ffe8]
faddp st(1)
fstp qword [esp]
call fcn.00519e42
mov ebx, eax
lea eax, [ebx + 1]
add esp, 8
cmp eax, dword [esp + 0x88]
jge 0x4c46fc
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
push ecx
push edi
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [esp + 0x3c], 0
je 0x4c4724
mov edx, dword [esp + 0x74]
push 0
push edx
push ebx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x7c]
push eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
jmp 0x4c47b7
mov ecx, dword [esi + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edi
call ebp
mov edx, dword [esp + 0x74]
push 0
push edx
push ebx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x7c]
push eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esi + 0x64]
push ecx
push edi
call ebp
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0xf0]
push 0x636ca8
push ecx
mov edx, 0x40
call fcn.005a3920
lea eax, [esp + 0xf8]
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4c4782
push 0
sub eax, ecx
sar eax, 1
push eax
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0xf0]
push edx
push 0
push 0
add eax, 4
push eax
lea ecx, [ebx + 4]
push ecx
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ebp, dword [esp + 0x64]
sub dword [esp + 0x3c], 1
mov dword [esp + 0x88], ebx
jns 0x4c47ca
add dword [esp + 0x3c], 5
add dword [esp + 0x60], 0xffffffff
adc ebp, 0xffffffff
cmp ebp, dword [esp + 0x4c]
mov dword [esp + 0x64], ebp
jg 0x4c46b0
jl 0x4c47f0
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x60], edx
jae 0x4c46b0
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x88], eax
jle 0x4c4818
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
push ecx
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esi + 0x60]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x70]
mov ebp, dword [sym.imp.GDI32.dll_MoveToEx]
push 0
push ebx
push eax
push edi
call ebp
mov ecx, dword [esp + 0x78]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_LineTo]
push ecx
push edi
call ebx
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x70]
push 0
push edx
push eax
push edi
call ebp
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x78]
push ecx
push edx
push edi
call ebx
mov eax, dword [esi + 0x74]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
fld qword [esi + 0x18]
fsub qword [esi + 0x18]
sub esp, 8
fmul qword [esi + 0x28]
fild dword [esi + 0x10]
fmul qword [0x62ffe8]
faddp st(1)
fstp qword [esp]
call fcn.00519e42
mov ecx, dword [esp + 0x7c]
add esp, 8
push 0
push ecx
mov ebx, eax
push ebx
push edi
call ebp
mov edx, dword [esp + 0x7c]
push edx
push ebx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
fld qword [esp + 0x90]
mov ecx, dword [esi + 0xc]
sub esp, 8
fstp qword [esp]
call fcn.005d4de0
fld qword [esp + 0x98]
mov ecx, dword [esi + 0xc]
sub esp, 8
fstp qword [esp]
mov ebp, eax
call fcn.005d4de0
mov ebx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x5c]
cmp ebp, dword [eax]
je 0x4c48e7
sub ebp, 0x18
cmp ebx, dword [eax + 4]
je 0x4c48f3
add ebx, 0x18
mov dword [esp + 0x40], ebx
push 2
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x5c]
cmp ebp, dword [eax]
sete byte [esp + 0x46]
cmp ebx, dword [eax + 4]
sete byte [esp + 0x47]
cmp ebp, ebx
je 0x4c4bc5
fld qword [ebp]
sub esp, 8
fsub qword [esi + 0x18]
fmul qword [esi + 0x28]
fild dword [esi + 0x10]
fmul qword [0x62ffe8]
faddp st(1)
fstp qword [esp]
call fcn.00519e42
fld qword [ebp + 8]
mov dword [esp + 0x44], eax
fild dword [esi + 0x14]
fmul qword [0x62ffe8]
fxch st(1)
fsub qword [esi + 0x20]
fmul qword [esi + 0x30]
fsubp st(1)
fstp qword [esp]
call fcn.00519e42
add esp, 8
cmp byte [esp + 0x46], 0
mov ebx, eax
je 0x4c498d
mov eax, dword [esi + 0x70]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push ebx
push 0
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x3c]
push ebx
push ecx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov byte [esp + 0x46], 0
mov eax, dword [esp + 0x3c]
lea edx, [eax - 2]
add eax, 3
cmp ebp, dword [esi + 0x8c]
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], eax
lea ecx, [ebx - 2]
lea edx, [ebx + 3]
sete al
cmp ebp, dword [esi + 0x88]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], edx
jne 0x4c49c5
push 0xff
jmp 0x4c49d5
test al, al
je 0x4c49d0
push 0xffff
jmp 0x4c49d5
push 0xff0000
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x3c]
push 0
push 0
push 0x62aa66
lea eax, [esp + 0x6c]
push eax
push 2
push ebx
push ecx
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
lea eax, [ebp + 0x18]
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
je 0x4c4b8a
fld qword [eax]
sub esp, 8
fsub qword [esi + 0x18]
fmul qword [esi + 0x28]
fild dword [esi + 0x10]
fmul qword [0x62ffe8]
faddp st(1)
fstp qword [esp]
call fcn.00519e42
fld qword [ebp + 0x20]
mov dword [esp + 0x60], eax
fild dword [esi + 0x14]
fmul qword [0x62ffe8]
fxch st(1)
fsub qword [esi + 0x20]
fmul qword [esi + 0x30]
fsubp st(1)
fstp qword [esp]
call fcn.00519e42
add esp, 8
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x54], eax
je 0x4c4a80
mov edx, dword [esi + 0x6c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x3c]
push 0
push ebx
push eax
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push ecx
push edx
jmp 0x4c4bb0
mov eax, dword [esi + 0x68]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push ebx
mov ebx, dword [esp + 0x44]
push ebx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x58]
cmp eax, ebx
jg 0x4c4aac
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x4c4baf
mov dword [esp + 0x3c], 1
lea ebx, [esp + 0xec]
jmp 0x4c4ac0
fild dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esi + 0xc]
sub esp, 8
fmul dword [0x63920c]
lea eax, [esp + 0x170]
fld qword [edx]
fsub qword [ebp]
fmulp st(1)
fadd qword [ebp]
fst qword [esp + 0xa0]
fstp qword [esp]
push eax
call fcn.005d4b50
fld qword [eax + 8]
fstp qword [esp + 0x90]
sub esp, 8
fld qword [esp + 0xa0]
fsub qword [esi + 0x18]
fmul qword [esi + 0x28]
fild dword [esi + 0x10]
fmul qword [0x62ffe8]
faddp st(1)
fstp qword [esp]
call fcn.00519e42
fild dword [esi + 0x14]
mov dword [ebx - 4], eax
fmul qword [0x62ffe8]
fld qword [esp + 0x98]
fsub qword [esi + 0x20]
fmul qword [esi + 0x30]
fsubp st(1)
fstp qword [esp]
call fcn.00519e42
mov dword [ebx], eax
mov eax, dword [esp + 0x44]
add eax, 1
add esp, 8
add ebx, 8
cmp eax, 0x10
mov dword [esp + 0x3c], eax
jl 0x4c4ac0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push 0x10
lea eax, [esp + 0xec]
push eax
push edi
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x170], edx
call dword [sym.imp.GDI32.dll_PolylineTo]
jmp 0x4c4bb7
cmp byte [esp + 0x47], 0
je 0x4c4bb7
mov ecx, dword [esi + 0x70]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x3c]
push 0
push ebx
push edx
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esi + 0x10]
push ebx
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ebp, dword [esp + 0x5c]
cmp ebp, dword [esp + 0x40]
jne 0x4c4917
mov ecx, dword [esp + 0xa4]
push ecx
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esi + 8]
lea edx, [esp + 0xa8]
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