Function at 0x46ea27
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, 0x4bbb4e
call fcn.00485421
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.004687f5
pop ecx
pop ecx
test eax, eax
je 0x46eb69
push esi
push 0x100000
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0048ee20
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.00472080
mov byte [ebp - 4], 1
call fcn.0046d372
test eax, eax
jne 0x46ead5
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jge 0x46eac2
push 0x80070057
call fcn.0040dfb0
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x98]
call fcn.004744e3
test eax, eax
je 0x46eb1a
cmp dword [ebp - 0x18], esi
ja 0x46eae3
cmp dword [ebp - 0x1c], 0x190
jb 0x46eb1a
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
call fcn.0046e951
xor esi, esi
inc esi
pop ecx
cmp eax, esi
jne 0x46eb1a
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.004720fb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, esi
jmp 0x46eb77
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
call fcn.0046e951
xor esi, esi
pop ecx
mov ebx, 0x5000
cmp eax, esi
je 0x46eb9c
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push edi
call fcn.004198bb
mov ecx, dword [ebp - 0x24]
call fcn.0046e334
cmp eax, 1
jne 0x46eb9c
cmp dword [ebp - 0x18], esi
ja 0x46eb5a
cmp dword [ebp - 0x1c], ebx
jb 0x46eb9c
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.004720fb
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.00484647
add ebp, 0x414
leave
ret 4
lea ecx, [ebp - 0x50]
call fcn.0042f3e3
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.0046e994
test eax, eax
jne 0x46ebce
lea ecx, [ebp - 0x50]
call fcn.0042e3e6
push dword [ebp - 0x50]
call fcn.0048453e
pop ecx
jmp 0x46eafc
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 0x46eeb5
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.00484550
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.0042f087
mov ax, word [eax]
mov word [ebp + 0x208], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.004687f5
pop ecx
pop ecx
push 0
push 0x100000
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0048ee20
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 0x46ecc8
jb 0x46ec8e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jae 0x46ecc8
lea eax, [esi - 1]
cmp dword [ebp - 0x14], eax
jne 0x46eea6
mov eax, 0x190
cmp dword [ebp - 0x34], eax
jne 0x46ecac
test ecx, ecx
je 0x46eef5
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], ecx
ja 0x46ecbd
cmp dword [ebp - 0x1c], eax
jb 0x46eed9
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
call fcn.0041cb91
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.004198bb
call fcn.0046e951
pop ecx
test eax, eax
je 0x46ed01
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.0046e334
cmp eax, 1
je 0x46eeb2
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 0x4c33c4
push eax
call fcn.0041cc03
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.0046e951
pop ecx
test eax, eax
je 0x46ed72
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.0046e334
cmp eax, 1
je 0x46eedf
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00484550
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.0042f087
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.0046e951
pop ecx
test eax, eax
je 0x46ee04
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.0046e334
cmp eax, 1
je 0x46eedf
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0042f087
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.0046db55
push str.:360Safe
lea ecx, [ebp - 0x10]
call fcn.0041cbde
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.0046e951
pop ecx
test eax, eax
je 0x46ee69
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.0046e334
cmp eax, 1
je 0x46eedf
mov edx, dword [ebp - 0x28]
dec edx
mov eax, 0x190
cmp dword [ebp - 0x14], edx
jne 0x46ee95
cmp dword [ebp - 0x34], eax
jne 0x46ee80
xor ecx, ecx
je 0x46ee87
or dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x14], edx
jne 0x46ee95
cmp dword [ebp - 0x34], eax
jne 0x46ee95
xor eax, eax
je 0x46eeed
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 0x46ebf4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041cb91
lea ecx, [ebp - 0x50]
call fcn.0042e3e6
push dword [ebp - 0x50]
call fcn.0048453e
xor esi, esi
pop ecx
inc esi
jmp 0x46eafc
or dword [ebp - 0x14], 0xffffffff
jmp 0x46eea6
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.0040dd20
jmp 0x46eeb2
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [ebp - 0x50]
call fcn.0042e3e6
push dword [ebp - 0x50]
call fcn.0048453e
pop ecx
xor esi, esi
jmp 0x46eafc