Function at 0x4576cc
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, 0x4b2217
call fcn.004764c0
mov ebx, dword [ebp + 0x41c]
xor esi, esi
mov dword [ebp - 0x48], ebx
cmp ebx, esi
jne 0x457709
xor eax, eax
jmp 0x457a54
push 0x4f9e00
lea ecx, [ebp - 0x14]
call fcn.004027fb
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00460be6
mov ecx, ebx
call fcn.0045f79c
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, esi
jne 0x457746
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, esi
jmp 0x457a54
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
jge 0x457758
push 0x80070057
call fcn.0040283a
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.00404da7
pop ecx
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00463f89
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0045f577
test eax, eax
jne 0x4577b3
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x45774e
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.004663c2
test eax, eax
je 0x4577f1
test esi, esi
ja 0x4577c0
cmp dword [ebp - 0x28], 0x190
jb 0x4577f1
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.00442623
pop ecx
cmp eax, 1
jne 0x4577f1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00464004
xor esi, esi
inc esi
jmp 0x457734
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.00442623
pop ecx
mov ebx, 0x5000
test eax, eax
je 0x45785c
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.004574f7
pop ecx
cmp eax, 1
jne 0x45785c
push dword [ebp - 0x14]
mov ecx, 0x4f7c20
call fcn.0043a235
test eax, eax
jne 0x45785c
push dword [ebp - 0x14]
mov ecx, 0x4f7c20
call fcn.0043cabd
test eax, eax
jne 0x45785c
test esi, esi
ja 0x457a37
cmp dword [ebp - 0x28], ebx
jae 0x457a37
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.004027fb
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00444a82
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.0045763b
pop ecx
test eax, eax
jne 0x4578b9
lea ecx, [ebp - 0x44]
call fcn.00444769
push dword [ebp - 0x44]
call fcn.00472b5b
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00464004
xor esi, esi
jmp 0x457734
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 0x457a08
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x4578de
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.00475420
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.004448b8
mov ax, word [eax]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov word [ebp + 0x208], ax
call fcn.004448b8
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.00402766
xor ecx, ecx
cmp esi, ecx
ja 0x4579a8
jb 0x45796e
cmp edi, dword [ebp - 0x28]
jae 0x4579a8
mov eax, dword [ebp - 0x2c]
dec eax
cmp dword [ebp - 0x18], eax
jne 0x457c5d
mov eax, 0x190
cmp dword [ebp - 0x28], eax
jne 0x45798d
test ecx, ecx
je 0x457887
mov dword [ebp - 0x28], eax
test esi, esi
ja 0x45799c
cmp edi, eax
jb 0x457a77
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c3e
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.00442623
pop ecx
test eax, eax
je 0x457a80
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.004574f7
pop ecx
mov edi, 0x4f7c20
cmp eax, 1
jne 0x457a85
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043a235
test eax, eax
jne 0x457a85
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043cabd
test eax, eax
jne 0x457a85
mov ecx, dword [ebp - 0x48]
call fcn.0045f244
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.00401c3e
lea ecx, [ebp - 0x44]
call fcn.00444769
push dword [ebp - 0x44]
call fcn.00472b5b
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00464004
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402820
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.0047549a
add ebp, 0x414
leave
ret
or dword [ebp - 0x18], 0xffffffff
jmp 0x457c5d
mov edi, 0x4f7c20
push 0x4f9e00
lea ecx, [ebp - 0x1c]
call fcn.004027fb
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x1c]
push 0x4d2c24
push eax
call fcn.00403b2e
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403c21
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.00442623
pop ecx
test eax, eax
je 0x457b10
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.004574f7
pop ecx
cmp eax, 1
jne 0x457b10
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043a235
test eax, eax
jne 0x457b10
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043cabd
test eax, eax
je 0x457c71
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00475420
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.004448b8
mov ax, word [eax]
mov word [ebp], ax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402766
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403c21
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.00442623
pop ecx
test eax, eax
je 0x457bc0
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.004574f7
pop ecx
cmp eax, 1
jne 0x457bc0
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043a235
test eax, eax
jne 0x457bc0
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0043cabd
test eax, eax
je 0x457c71
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.004448b8
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00456bf5
push str.:360Safe
lea ecx, [ebp - 0x10]
call fcn.00403b09
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.00403c21
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.00442623
pop ecx
test eax, eax
je 0x457c23
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403cb9
call fcn.004574f7
pop ecx
cmp eax, 1
je 0x457c71
mov edx, dword [ebp - 0x2c]
dec edx
mov eax, 0x190
cmp dword [ebp - 0x18], edx
jne 0x457c4f
cmp dword [ebp - 0x28], eax
jne 0x457c3a
xor ecx, ecx
je 0x457c41
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], edx
jne 0x457c4f
cmp dword [ebp - 0x28], eax
jne 0x457c4f
xor eax, eax
je 0x457c84
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402820
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jl 0x4578db
jmp 0x457a08
add esi, 0xfffffff0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402820
jmp 0x457a08
lea ecx, [esi - 0x10]
call fcn.00402820
jmp 0x457887