Function at 0x4576f0
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, 0x4b2298
call fcn.00476610
mov ebx, dword [ebp + 0x41c]
xor esi, esi
mov dword [ebp - 0x48], ebx
cmp ebx, esi
jne 0x45772d
xor eax, eax
jmp 0x457a78
push 0x4f9e18
lea ecx, [ebp - 0x14]
call fcn.0040284b
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00460e88
mov ecx, ebx
call fcn.0045f93b
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, esi
jne 0x45776a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
mov eax, esi
jmp 0x457a78
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
jge 0x45777c
push 0x80070057
call fcn.0040288a
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.00404d91
pop ecx
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00463fec
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0045f6e2
test eax, eax
jne 0x4577d7
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x457772
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.00466425
test eax, eax
je 0x457815
test esi, esi
ja 0x4577e4
cmp dword [ebp - 0x28], 0x190
jb 0x457815
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0044240a
pop ecx
cmp eax, 1
jne 0x457815
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00464067
xor esi, esi
inc esi
jmp 0x457758
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0044240a
pop ecx
mov ebx, 0x5000
test eax, eax
je 0x457880
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0045751b
pop ecx
cmp eax, 1
jne 0x457880
push dword [ebp - 0x14]
mov ecx, 0x4f7c38
call fcn.00439f5a
test eax, eax
jne 0x457880
push dword [ebp - 0x14]
mov ecx, 0x4f7c38
call fcn.0043c8ad
test eax, eax
jne 0x457880
test esi, esi
ja 0x457a5b
cmp dword [ebp - 0x28], ebx
jae 0x457a5b
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0044eda6
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.0045765f
pop ecx
test eax, eax
jne 0x4578dd
lea ecx, [ebp - 0x44]
call fcn.0044e509
push dword [ebp - 0x44]
call fcn.00472c4d
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00464067
xor esi, esi
jmp 0x457758
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 0x457a2c
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x457902
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.00475570
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.00444802
mov ax, word [eax]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov word [ebp + 0x208], ax
call fcn.00444802
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.004027b6
xor ecx, ecx
cmp esi, ecx
ja 0x4579cc
jb 0x457992
cmp edi, dword [ebp - 0x28]
jae 0x4579cc
mov eax, dword [ebp - 0x2c]
dec eax
cmp dword [ebp - 0x18], eax
jne 0x457c81
mov eax, 0x190
cmp dword [ebp - 0x28], eax
jne 0x4579b1
test ecx, ecx
je 0x4578ab
mov dword [ebp - 0x28], eax
test esi, esi
ja 0x4579c0
cmp edi, eax
jb 0x457a9b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c8e
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0044240a
pop ecx
test eax, eax
je 0x457aa4
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0045751b
pop ecx
mov edi, 0x4f7c38
cmp eax, 1
jne 0x457aa9
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00439f5a
test eax, eax
jne 0x457aa9
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043c8ad
test eax, eax
jne 0x457aa9
mov ecx, dword [ebp - 0x48]
call fcn.0045f3af
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.00401c8e
lea ecx, [ebp - 0x44]
call fcn.0044e509
push dword [ebp - 0x44]
call fcn.00472c4d
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00464067
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402870
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.004755ea
add ebp, 0x414
leave
ret
or dword [ebp - 0x18], 0xffffffff
jmp 0x457c81
mov edi, 0x4f7c38
push 0x4f9e18
lea ecx, [ebp - 0x1c]
call fcn.0040284b
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x1c]
push 0x4d3964
push eax
call fcn.00403b60
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403bfe
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0044240a
pop ecx
test eax, eax
je 0x457b34
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0045751b
pop ecx
cmp eax, 1
jne 0x457b34
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00439f5a
test eax, eax
jne 0x457b34
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043c8ad
test eax, eax
je 0x457c95
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00475570
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.00444802
mov ax, word [eax]
mov word [ebp], ax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004027b6
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403bfe
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0044240a
pop ecx
test eax, eax
je 0x457be4
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0045751b
pop ecx
cmp eax, 1
jne 0x457be4
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00439f5a
test eax, eax
jne 0x457be4
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043c8ad
test eax, eax
je 0x457c95
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.00444802
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00456c19
push str.:360Safe
lea ecx, [ebp - 0x10]
call fcn.00403b3b
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403bfe
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0044240a
pop ecx
test eax, eax
je 0x457c47
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403c96
call fcn.0045751b
pop ecx
cmp eax, 1
je 0x457c95
mov edx, dword [ebp - 0x2c]
dec edx
mov eax, 0x190
cmp dword [ebp - 0x18], edx
jne 0x457c73
cmp dword [ebp - 0x28], eax
jne 0x457c5e
xor ecx, ecx
je 0x457c65
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], edx
jne 0x457c73
cmp dword [ebp - 0x28], eax
jne 0x457c73
xor eax, eax
je 0x457ca8
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402870
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jl 0x4578ff
jmp 0x457a2c
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402870
jmp 0x457a2c
lea ecx, [esi - 0x10]
call fcn.00402870
jmp 0x4578ab