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

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x88
mov eax, 0x4b175a
call fcn.00475a5f
mov ebx, dword [ebp + 0x41c]
xor esi, esi
mov dword [ebp - 0x48], ebx
cmp ebx, esi
jne 0x456d9f
xor eax, eax
jmp 0x4570ea
push 0x4f8ce0
lea ecx, [ebp - 0x14]
call fcn.004029af
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.0045fd29
mov ecx, ebx
call fcn.0045e91a
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, esi
jne 0x456ddc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, esi
jmp 0x4570ea
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
jge 0x456dee
push 0x80070057
call fcn.004029ee
movzx eax, word [eax]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0x50]
push dword [ebp - 0x14]
mov esi, edx
shrd eax, esi, 0x14
push str.FullDir_:__s
mov dword [ebp - 0x28], eax
shr esi, 0x14
call fcn.00404dac
pop ecx
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00462e21
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0045e6ea
test eax, eax
jne 0x456e49
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x456de4
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.0046525a
test eax, eax
je 0x456e87
test esi, esi
ja 0x456e56
cmp dword [ebp - 0x28], 0x190
jb 0x456e87
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.004422e7
pop ecx
cmp eax, 1
jne 0x456e87
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00462e9c
xor esi, esi
inc esi
jmp 0x456dca
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.004422e7
pop ecx
mov ebx, 0x5000
test eax, eax
je 0x456ef2
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.00456b8d
pop ecx
cmp eax, 1
jne 0x456ef2
push dword [ebp - 0x14]
mov ecx, 0x4f6b00
call fcn.00439e1f
test eax, eax
jne 0x456ef2
push dword [ebp - 0x14]
mov ecx, 0x4f6b00
call fcn.0043c77a
test eax, eax
jne 0x456ef2
test esi, esi
ja 0x4570cd
cmp dword [ebp - 0x28], ebx
jae 0x4570cd
push 0x4f8ce0
lea ecx, [ebp - 0x10]
call fcn.004029af
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0045448a
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.00456cd1
pop ecx
test eax, eax
jne 0x456f4f
lea ecx, [ebp - 0x44]
call fcn.0044865d
push dword [ebp - 0x44]
call fcn.00472151
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00462e9c
xor esi, esi
jmp 0x456dca
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
and dword [ebp - 0x18], 0
sar eax, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
test eax, eax
jle 0x45709e
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x456f74
mov edi, dword [ebp - 0x4c]
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call fcn.00474a10
add esp, 0xc
push 1
push 0x26
lea eax, [ebp + 0x208]
push eax
push 0
call ebx
push str.360360Safe
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.00444525
mov ax, word [eax]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov word [ebp + 0x208], ax
call fcn.00444525
movzx eax, word [eax]
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0x50]
mov edi, eax
mov esi, edx
lea eax, [ebp + 0x208]
shrd edi, esi, 0x14
push eax
lea ecx, [ebp - 0x10]
shr esi, 0x14
call fcn.004028fb
xor ecx, ecx
cmp esi, ecx
ja 0x45703e
jb 0x457004
cmp edi, dword [ebp - 0x28]
jae 0x45703e
mov eax, dword [ebp - 0x2c]
dec eax
cmp dword [ebp - 0x18], eax
jne 0x4572f3
mov eax, 0x190
cmp dword [ebp - 0x28], eax
jne 0x457023
test ecx, ecx
je 0x456f1d
mov dword [ebp - 0x28], eax
test esi, esi
ja 0x457032
cmp edi, eax
jb 0x45710d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401df2
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.004422e7
pop ecx
test eax, eax
je 0x457116
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.00456b8d
pop ecx
mov edi, 0x4f6b00
cmp eax, 1
jne 0x45711b
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00439e1f
test eax, eax
jne 0x45711b
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043c77a
test eax, eax
jne 0x45711b
mov ecx, dword [ebp - 0x48]
call fcn.0045e3b7
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.00401df2
lea ecx, [ebp - 0x44]
call fcn.0044865d
push dword [ebp - 0x44]
call fcn.00472151
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00462e9c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
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.00474a8a
add ebp, 0x414
leave
ret
or dword [ebp - 0x18], 0xffffffff
jmp 0x4572f3
mov edi, 0x4f6b00
push 0x4f8ce0
lea ecx, [ebp - 0x1c]
call fcn.004029af
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x1c]
push 0x4d2884
push eax
call fcn.00403b7e
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403c1c
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.004422e7
pop ecx
test eax, eax
je 0x4571a6
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.00456b8d
pop ecx
cmp eax, 1
jne 0x4571a6
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00439e1f
test eax, eax
jne 0x4571a6
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043c77a
test eax, eax
je 0x457307
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00474a10
add esp, 0xc
push 1
push 0x26
lea eax, [ebp]
push eax
push 0
call ebx
push str.360Safe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.00444525
mov ax, word [eax]
mov word [ebp], ax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004028fb
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403c1c
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.004422e7
pop ecx
test eax, eax
je 0x457256
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.00456b8d
pop ecx
cmp eax, 1
jne 0x457256
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00439e1f
test eax, eax
jne 0x457256
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043c77a
test eax, eax
je 0x457307
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.00444525
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.0045628b
push str.:360Safe
lea ecx, [ebp - 0x10]
call fcn.00403b59
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403c1c
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.004422e7
pop ecx
test eax, eax
je 0x4572b9
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb4
call fcn.00456b8d
pop ecx
cmp eax, 1
je 0x457307
mov edx, dword [ebp - 0x2c]
dec edx
mov eax, 0x190
cmp dword [ebp - 0x18], edx
jne 0x4572e5
cmp dword [ebp - 0x28], eax
jne 0x4572d0
xor ecx, ecx
je 0x4572d7
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], edx
jne 0x4572e5
cmp dword [ebp - 0x28], eax
jne 0x4572e5
xor eax, eax
je 0x45731a
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004029d4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jl 0x456f71
jmp 0x45709e
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004029d4
jmp 0x45709e
lea ecx, [esi - 0x10]
call fcn.004029d4
jmp 0x456f1d