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

Disassembly:
push 0xffffffffffffffff
push 0x4557f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov eax, dword [str.lF_F]
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x238]
mov dword [esp + 0x228], 0
sub eax, 0
je 0x41cbb9
dec eax
jne 0x41cd28
mov esi, dword [esp + 0x234]
test esi, esi
jne 0x41cb68
xor ebp, ebp
jmp 0x41cb71
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
lea ecx, [esp + 0x10]
call fcn.004079b0
test eax, eax
je 0x41cd28
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x41cba3
mov edi, dword [esp + 0xc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0xc]
mov word [eax + edx], 0
jmp 0x41cd28
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41cd09
mov ecx, dword [str.lF_F]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, str.360360safe
mov dword [esp + 0x10], ecx
test edx, edx
je 0x41cc4e
mov eax, edx
shr eax, 0x10
jne 0x41cc11
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00403d60
jmp 0x41cc4e
push str.360360safe
call ebp
mov esi, eax
test esi, esi
je 0x41cc4e
push esi
lea ecx, [esp + 0x14]
call fcn.00404130
test eax, eax
je 0x41cc4e
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x41cc4e
mov edi, dword [esp + 0x10]
mov eax, ecx
mov esi, str.360360safe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x234], 1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov cx, word [esp + 0x234]
lea edx, [esp + 0x18]
test edx, edx
mov word [esp + 0x18], cx
jne 0x41cc84
xor ebp, ebp
jmp 0x41cc8d
lea eax, [esp + 0x18]
push eax
call ebp
mov ebp, eax
push ebp
lea ecx, [esp + 0x10]
call fcn.004079b0
test eax, eax
je 0x41ccd0
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x41ccbf
mov edi, dword [esp + 0xc]
mov ecx, eax
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0xc]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x46005c]
mov byte [esp + 0x228], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41cd28
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41cd28
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00439890
add esp, 4
jmp 0x41cd28
mov eax, dword [esp + 0x234]
lea ecx, [esp + 0xc]
and eax, 0xffff
push eax
push 0x4605e8
push ecx
call fcn.00407560
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x6a4]
lea esi, [edx + 0x6a4]
mov edx, dword [esp + 0xc]
cmp eax, edx
je 0x41cdaa
mov edi, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edi, edi
jge 0x41cd57
mov ebp, dword [0x46005c]
lea edi, [eax - 0xc]
cmp edi, ebp
jne 0x41cd5e
mov edi, dword [edx - 0xc]
test edi, edi
jge 0x41cd6c
mov eax, dword [edx - 8]
push edx
push eax
mov ecx, esi
call fcn.00404190
jmp 0x41cdaa
mov edx, dword [0x46005c]
add eax, 0xfffffff4
cmp eax, edx
je 0x41cd9a
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41cd92
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00439890
add esp, 4
mov ecx, dword [str.lF_F]
mov dword [esi], ecx
mov eax, dword [esp + 0xc]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0xc]
mov dword [esp + 0x228], 0xffffffff
call fcn.00404100
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret 0x10