Function at 0x4c8a40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5acf00
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.00408720
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
or ebp, 0xffffffff
test eax, eax
jl 0x4c8c81
push str..exe
push ecx
call fcn.0058913b
mov ecx, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x4c8c81
sub eax, ecx
sar eax, 1
cmp eax, ebp
je 0x4c8c81
cmp dword [ecx - 0xc], 0
jl 0x4c8ad5
push str.360wapp.exe
push ecx
call fcn.0058913b
add esp, 8
test eax, eax
je 0x4c8ad5
mov ecx, dword [esp + 0x24]
sub eax, ecx
sar eax, 1
cmp eax, ebp
jne 0x4c8c81
mov eax, dword [0x621148]
mov edx, dword [eax + 0xc]
mov ecx, 0x621148
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x1c], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4c8b16
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.00406a80
mov esi, dword [esp + 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0058a3a5
add esp, 8
test eax, eax
jl 0x4c8c77
cmp eax, dword [esi - 8]
jg 0x4c8c77
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edi, [esp + 0x10]
mov word [esi + eax*2], cx
call fcn.00408720
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4c8bb4
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
jl 0x4c8bb4
push esi
push eax
call fcn.0058913b
add esp, 8
test eax, eax
je 0x4c8bb4
sub eax, dword [esp + 0x24]
sar eax, 1
cmp eax, ebp
je 0x4c8bb4
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c8b9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
jmp 0x4c8c90
mov edx, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub edx, 0x104
or ecx, edx
jge 0x4c8bdb
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.00406a80
mov esi, dword [esp + 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0058a3a5
add esp, 8
test eax, eax
jl 0x4c8c77
cmp eax, dword [esi - 8]
jg 0x4c8c77
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edi, [esp + 0x10]
mov word [esi + eax*2], cx
call fcn.00408720
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c8c4b
mov ecx, dword [esp + 0x24]
cmp dword [ecx - 0xc], 0
jl 0x4c8c4b
push eax
push ecx
call fcn.0058913b
add esp, 8
test eax, eax
je 0x4c8c4b
sub eax, dword [esp + 0x24]
sar eax, 1
cmp eax, ebp
je 0x4c8c4b
mov ecx, edi
call fcn.004066e0
lea ecx, [esp + 0x24]
call fcn.004066e0
jmp 0x4c8c9e
lea ecx, [esp + 0x10]
call fcn.004066e0
lea ecx, [esp + 0x24]
call fcn.004066e0
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
push 0x80070057
call fcn.00406af0
lea eax, [ecx - 0x10]
mov dword [esp + 0x1c], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x4c8c9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4