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

Disassembly:
push 0xffffffffffffffff
push 0x457856
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov eax, dword [0x463058]
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 0x41bbd9
dec eax
jne 0x41bd48
mov esi, dword [esp + 0x234]
test esi, esi
jne 0x41bb88
xor ebp, ebp
jmp 0x41bb91
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
lea ecx, [esp + 0x10]
call fcn.00407470
test eax, eax
je 0x41bd48
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x41bbc3
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 0x41bd48
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 0x41bd29
mov ecx, dword [0x463058]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, str.360360safe
mov dword [esp + 0x10], ecx
test edx, edx
je 0x41bc6e
mov eax, edx
shr eax, 0x10
jne 0x41bc31
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00406f90
jmp 0x41bc6e
push str.360360safe
call ebp
mov esi, eax
test esi, esi
je 0x41bc6e
push esi
lea ecx, [esp + 0x14]
call fcn.00403db0
test eax, eax
je 0x41bc6e
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x41bc6e
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 0x41bca4
xor ebp, ebp
jmp 0x41bcad
lea eax, [esp + 0x18]
push eax
call ebp
mov ebp, eax
push ebp
lea ecx, [esp + 0x10]
call fcn.00407470
test eax, eax
je 0x41bcf0
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x41bcdf
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 [0x46305c]
mov byte [esp + 0x228], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41bd48
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bd48
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0043733c
add esp, 4
jmp 0x41bd48
mov eax, dword [esp + 0x234]
lea ecx, [esp + 0xc]
and eax, 0xffff
push eax
push 0x463550
push ecx
call fcn.00406f70
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x510]
lea esi, [edx + 0x510]
mov edx, dword [esp + 0xc]
cmp eax, edx
je 0x41bdca
mov edi, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edi, edi
jge 0x41bd77
mov ebp, dword [0x46305c]
lea edi, [eax - 0xc]
cmp edi, ebp
jne 0x41bd7e
mov edi, dword [edx - 0xc]
test edi, edi
jge 0x41bd8c
mov eax, dword [edx - 8]
push edx
push eax
mov ecx, esi
call fcn.00403e10
jmp 0x41bdca
mov edx, dword [0x46305c]
add eax, 0xfffffff4
cmp eax, edx
je 0x41bdba
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bdb2
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.0043733c
add esp, 4
mov ecx, dword [0x463058]
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.00403d80
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret 0x10