Function at 0x41d870
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x490c76
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b3c40]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov eax, dword [0x4b5e2c]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x4b5e2c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [0x4b5e2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b5e2c
mov dword [esp + 0x230], 0
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push str._360AP.exe_
mov ecx, edi
mov byte [esp + 0x238], 1
call fcn.0041d130
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test al, al
je 0x41d91b
lea ecx, [esp + 0x18]
lea esi, [edi + 8]
push ecx
mov ecx, esi
call fcn.0040e410
jmp 0x41d9e6
lea edx, [esp + 0x14]
push edx
push str._360safe.exe_
mov ecx, edi
call fcn.0041d130
test al, al
je 0x41d9a1
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x41d95a
push 0x104
lea ecx, [esp + 0x18]
call fcn.0040d6c0
mov ebp, dword [esp + 0x14]
push str...360AP
push ebp
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.00445ddd
add esp, 8
test eax, eax
jl 0x41d997
cmp eax, dword [ebp - 8]
jg 0x41d997
xor ecx, ecx
mov dword [ebp - 0xc], eax
lea edx, [esp + 0x14]
mov word [ebp + eax*2], cx
lea esi, [edi + 8]
push edx
mov ecx, esi
call fcn.0040e410
jmp 0x41d9e6
push 0x80070057
call fcn.0040c180
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x26]
push ecx
mov word [esp + 0x28], ax
call fcn.004453c0
add esp, 0xc
push 1
push 0x26
lea edx, [esp + 0x24]
push edx
push 0
call ebx
mov eax, dword [edi + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea esi, [edi + 8]
push 0x49516c
push esi
call fcn.0040ebe0
mov ebp, dword [esp + 0x24]
add esp, 0x10
push esi
call fcn.0041ab50
add esp, 4
test eax, eax
jne 0x41da55
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x26]
push eax
mov word [esp + 0x28], dx
call fcn.004453c0
add esp, 0xc
push 1
push 0x26
lea ecx, [esp + 0x24]
push ecx
push 0
call ebx
push str.360AP
lea edx, [esp + 0x20]
push edx
push 0x49516c
push esi
call fcn.0040ebe0
push esi
call fcn.0041ab50
add esp, 0x14
test eax, eax
jne 0x41da55
movzx eax, word [esp + 0x1c]
push str.360AP
push eax
push str._c:_s
push esi
call fcn.0040ebe0
add esp, 0x10
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x230], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41da7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x230], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41daa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004453a3
add esp, 0x220
ret