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

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x88
mov eax, 0x4b20bc
call fcn.004764b0
mov ebx, dword [ebp + 0x41c]
xor esi, esi
mov dword [ebp - 0x48], ebx
cmp ebx, esi
jne 0x456c01
xor eax, eax
jmp 0x456f4c
push 0x4f9e00
lea ecx, [ebp - 0x14]
call fcn.0040293e
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.004600b7
mov ecx, ebx
call fcn.0045ec1e
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, esi
jne 0x456c3e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402963
mov eax, esi
jmp 0x456f4c
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
jge 0x456c50
push 0x80070057
call fcn.00402987
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.00404d2e
pop ecx
pop ecx
lea ecx, [ebp - 0x94]
call fcn.0046345a
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0045ea2c
test eax, eax
jne 0x456cab
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x456c46
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.00465894
test eax, eax
je 0x456ce9
test esi, esi
ja 0x456cb8
cmp dword [ebp - 0x28], 0x190
jb 0x456ce9
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.0044207c
pop ecx
cmp eax, 1
jne 0x456ce9
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.004634d5
xor esi, esi
inc esi
jmp 0x456c2c
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.0044207c
pop ecx
mov ebx, 0x5000
test eax, eax
je 0x456d54
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.004569ef
pop ecx
cmp eax, 1
jne 0x456d54
push dword [ebp - 0x14]
mov ecx, 0x4f7c20
call fcn.0043a0cf
test eax, eax
jne 0x456d54
push dword [ebp - 0x14]
mov ecx, 0x4f7c20
call fcn.0043ca51
test eax, eax
jne 0x456d54
test esi, esi
ja 0x456f2f
cmp dword [ebp - 0x28], ebx
jae 0x456f2f
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.0040293e
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0044624b
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.00456b33
pop ecx
test eax, eax
jne 0x456db1
lea ecx, [ebp - 0x44]
call fcn.0044dbb9
push dword [ebp - 0x44]
call fcn.00472af9
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402963
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.004634d5
xor esi, esi
jmp 0x456c2c
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 0x456f00
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x456dd6
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.00475410
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.004443a8
mov ax, word [eax]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov word [ebp + 0x208], ax
call fcn.004443a8
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.00402894
xor ecx, ecx
cmp esi, ecx
ja 0x456ea0
jb 0x456e66
cmp edi, dword [ebp - 0x28]
jae 0x456ea0
mov eax, dword [ebp - 0x2c]
dec eax
cmp dword [ebp - 0x18], eax
jne 0x457155
mov eax, 0x190
cmp dword [ebp - 0x28], eax
jne 0x456e85
test ecx, ecx
je 0x456d7f
mov dword [ebp - 0x28], eax
test esi, esi
ja 0x456e94
cmp edi, eax
jb 0x456f6f
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.00403c36
call fcn.0044207c
pop ecx
test eax, eax
je 0x456f78
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.004569ef
pop ecx
mov edi, 0x4f7c20
cmp eax, 1
jne 0x456f7d
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043a0cf
test eax, eax
jne 0x456f7d
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043ca51
test eax, eax
jne 0x456f7d
mov ecx, dword [ebp - 0x48]
call fcn.0045e6f9
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.00401df2
lea ecx, [ebp - 0x44]
call fcn.0044dbb9
push dword [ebp - 0x44]
call fcn.00472af9
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402963
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.004634d5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402963
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.0047548a
add ebp, 0x414
leave
ret
or dword [ebp - 0x18], 0xffffffff
jmp 0x457155
mov edi, 0x4f7c20
push 0x4f9e00
lea ecx, [ebp - 0x1c]
call fcn.0040293e
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x1c]
push 0x4d2bf4
push eax
call fcn.00403b17
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403b9e
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.0044207c
pop ecx
test eax, eax
je 0x457008
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.004569ef
pop ecx
cmp eax, 1
jne 0x457008
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043a0cf
test eax, eax
jne 0x457008
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043ca51
test eax, eax
je 0x457169
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00475410
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.004443a8
mov ax, word [eax]
mov word [ebp], ax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402894
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403b9e
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.0044207c
pop ecx
test eax, eax
je 0x4570b8
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.004569ef
pop ecx
cmp eax, 1
jne 0x4570b8
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043a0cf
test eax, eax
jne 0x4570b8
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043ca51
test eax, eax
je 0x457169
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.004443a8
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.004560ed
push str.:360Safe
lea ecx, [ebp - 0x10]
call fcn.00403af2
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403b9e
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.0044207c
pop ecx
test eax, eax
je 0x45711b
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c36
call fcn.004569ef
pop ecx
cmp eax, 1
je 0x457169
mov edx, dword [ebp - 0x2c]
dec edx
mov eax, 0x190
cmp dword [ebp - 0x18], edx
jne 0x457147
cmp dword [ebp - 0x28], eax
jne 0x457132
xor ecx, ecx
je 0x457139
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], edx
jne 0x457147
cmp dword [ebp - 0x28], eax
jne 0x457147
xor eax, eax
je 0x45717c
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402963
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jl 0x456dd3
jmp 0x456f00
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402963
jmp 0x456f00
lea ecx, [esi - 0x10]
call fcn.00402963
jmp 0x456d7f