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

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x8c
mov eax, 0x4bb625
call fcn.00484f9f
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp + 0x41c]
push 0x4ecda4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], edi
call fcn.0040ba90
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00468609
pop ecx
pop ecx
test eax, eax
je 0x46e6d5
push esi
push 0x100000
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0048e9a0
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.00471bea
mov byte [ebp - 4], 1
call fcn.0046cede
test eax, eax
jne 0x46e641
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jge 0x46e62e
push 0x80070057
call fcn.0040dfb0
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x98]
call fcn.00474059
test eax, eax
je 0x46e686
cmp dword [ebp - 0x18], esi
ja 0x46e64f
cmp dword [ebp - 0x1c], 0x190
jb 0x46e686
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
call fcn.0046e4bd
xor esi, esi
inc esi
pop ecx
cmp eax, esi
jne 0x46e686
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.00471c65
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, esi
jmp 0x46e6e3
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
call fcn.0046e4bd
xor esi, esi
pop ecx
mov ebx, 0x5000
cmp eax, esi
je 0x46e708
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
mov ecx, dword [ebp - 0x24]
call fcn.0046dea0
cmp eax, 1
jne 0x46e708
cmp dword [ebp - 0x18], esi
ja 0x46e6c6
cmp dword [ebp - 0x1c], ebx
jb 0x46e708
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.00471c65
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004841c7
add ebp, 0x414
leave
ret 4
lea ecx, [ebp - 0x50]
call fcn.0042f390
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.0046e500
test eax, eax
jne 0x46e73a
lea ecx, [ebp - 0x50]
call fcn.0042e393
push dword [ebp - 0x50]
call fcn.004840be
pop ecx
jmp 0x46e668
mov esi, dword [ebp - 0x40]
sub esi, dword [ebp - 0x44]
and dword [ebp - 0x14], 0
sar esi, 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], ebx
test esi, esi
jle 0x46ea21
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call fcn.004840d0
add esp, 0xc
push 1
push 0x26
lea eax, [ebp + 0x208]
push eax
push 0
call edi
push str.360360Safe
lea eax, [ebp + 0x208]
push eax
call ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0042f034
mov ax, word [eax]
mov word [ebp + 0x208], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.00468609
pop ecx
pop ecx
push 0
push 0x100000
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0048e9a0
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edx
call fcn.0040c8e0
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
ja 0x46e834
jb 0x46e7fa
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jae 0x46e834
lea eax, [esi - 1]
cmp dword [ebp - 0x14], eax
jne 0x46ea12
mov eax, 0x190
cmp dword [ebp - 0x34], eax
jne 0x46e818
test ecx, ecx
je 0x46ea61
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], ecx
ja 0x46e829
cmp dword [ebp - 0x1c], eax
jb 0x46ea45
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
call fcn.0041cb3f
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
call fcn.0046e4bd
pop ecx
test eax, eax
je 0x46e86d
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
mov ecx, dword [ebp - 0x24]
call fcn.0046dea0
cmp eax, 1
je 0x46ea1e
push 0x4ecda4
lea ecx, [ebp - 0x38]
call fcn.0040ba90
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x38]
push 0x4c335c
push eax
call fcn.0041cbb1
mov esi, dword [ebp - 0x38]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.0041a8eb
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
call fcn.0046e4bd
pop ecx
test eax, eax
je 0x46e8de
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
mov ecx, dword [ebp - 0x24]
call fcn.0046dea0
cmp eax, 1
je 0x46ea4b
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.004840d0
add esp, 0xc
push 1
push 0x26
lea eax, [ebp]
push eax
push 0
call edi
push str.360Safe
lea eax, [ebp]
push eax
call ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0042f034
mov ax, word [eax]
mov word [ebp], ax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c8e0
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.0041a8eb
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
call fcn.0046e4bd
pop ecx
test eax, eax
je 0x46e970
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
mov ecx, dword [ebp - 0x24]
call fcn.0046dea0
cmp eax, 1
je 0x46ea4b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0042f034
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.0046d6c1
push str.:360Safe
lea ecx, [ebp - 0x10]
call fcn.0041cb8c
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.0041a8eb
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
call fcn.0046e4bd
pop ecx
test eax, eax
je 0x46e9d5
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
mov ecx, dword [ebp - 0x24]
call fcn.0046dea0
cmp eax, 1
je 0x46ea4b
mov edx, dword [ebp - 0x28]
dec edx
mov eax, 0x190
cmp dword [ebp - 0x14], edx
jne 0x46ea01
cmp dword [ebp - 0x34], eax
jne 0x46e9ec
xor ecx, ecx
je 0x46e9f3
or dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x14], edx
jne 0x46ea01
cmp dword [ebp - 0x34], eax
jne 0x46ea01
xor eax, eax
je 0x46ea59
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040dd20
mov esi, dword [ebp - 0x28]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x46e760
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041cb3f
lea ecx, [ebp - 0x50]
call fcn.0042e393
push dword [ebp - 0x50]
call fcn.004840be
xor esi, esi
pop ecx
inc esi
jmp 0x46e668
or dword [ebp - 0x14], 0xffffffff
jmp 0x46ea12
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.0040dd20
jmp 0x46ea1e
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [ebp - 0x50]
call fcn.0042e393
push dword [ebp - 0x50]
call fcn.004840be
pop ecx
xor esi, esi
jmp 0x46e668