Function at 0x46e624
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, 0x4bb6a5
call fcn.0048501f
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.0046869a
pop ecx
pop ecx
test eax, eax
je 0x46e766
push esi
push 0x100000
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0048ea20
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.00471c7b
mov byte [ebp - 4], 1
call fcn.0046cf6f
test eax, eax
jne 0x46e6d2
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jge 0x46e6bf
push 0x80070057
call fcn.0040dfb0
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x98]
call fcn.004740ea
test eax, eax
je 0x46e717
cmp dword [ebp - 0x18], esi
ja 0x46e6e0
cmp dword [ebp - 0x1c], 0x190
jb 0x46e717
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
call fcn.0046e54e
xor esi, esi
inc esi
pop ecx
cmp eax, esi
jne 0x46e717
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.00471cf6
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, esi
jmp 0x46e774
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
call fcn.0046e54e
xor esi, esi
pop ecx
mov ebx, 0x5000
cmp eax, esi
je 0x46e799
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
mov ecx, dword [ebp - 0x24]
call fcn.0046df31
cmp eax, 1
jne 0x46e799
cmp dword [ebp - 0x18], esi
ja 0x46e757
cmp dword [ebp - 0x1c], ebx
jb 0x46e799
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.00471cf6
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.00484247
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.0046e591
test eax, eax
jne 0x46e7cb
lea ecx, [ebp - 0x50]
call fcn.0042e393
push dword [ebp - 0x50]
call fcn.0048413e
pop ecx
jmp 0x46e6f9
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 0x46eab2
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.00484150
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.0046869a
pop ecx
pop ecx
push 0
push 0x100000
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0048ea20
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 0x46e8c5
jb 0x46e88b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jae 0x46e8c5
lea eax, [esi - 1]
cmp dword [ebp - 0x14], eax
jne 0x46eaa3
mov eax, 0x190
cmp dword [ebp - 0x34], eax
jne 0x46e8a9
test ecx, ecx
je 0x46eaf2
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], ecx
ja 0x46e8ba
cmp dword [ebp - 0x1c], eax
jb 0x46ead6
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.0046e54e
pop ecx
test eax, eax
je 0x46e8fe
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.0046df31
cmp eax, 1
je 0x46eaaf
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.0046e54e
pop ecx
test eax, eax
je 0x46e96f
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.0046df31
cmp eax, 1
je 0x46eadc
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00484150
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.0046e54e
pop ecx
test eax, eax
je 0x46ea01
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.0046df31
cmp eax, 1
je 0x46eadc
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0042f034
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.0046d752
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.0046e54e
pop ecx
test eax, eax
je 0x46ea66
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.0046df31
cmp eax, 1
je 0x46eadc
mov edx, dword [ebp - 0x28]
dec edx
mov eax, 0x190
cmp dword [ebp - 0x14], edx
jne 0x46ea92
cmp dword [ebp - 0x34], eax
jne 0x46ea7d
xor ecx, ecx
je 0x46ea84
or dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x14], edx
jne 0x46ea92
cmp dword [ebp - 0x34], eax
jne 0x46ea92
xor eax, eax
je 0x46eaea
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 0x46e7f1
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.0048413e
xor esi, esi
pop ecx
inc esi
jmp 0x46e6f9
or dword [ebp - 0x14], 0xffffffff
jmp 0x46eaa3
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.0040dd20
jmp 0x46eaaf
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [ebp - 0x50]
call fcn.0042e393
push dword [ebp - 0x50]
call fcn.0048413e
pop ecx
xor esi, esi
jmp 0x46e6f9