Function at 0x457220
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5253
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d8
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d0], ecx
push 0
push 0x24
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xorps xmm0, xmm0
test eax, eax
jne 0x4572aa
push eax
push 0x4f1e88
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x2ac], eax
movups xmmword [ebp - 0x2bc], xmm0
mov dword [ebp - 0x2a8], eax
call fcn.004226b0
jmp 0x45734c
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x240], 0
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x23c], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4572d0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.004226b0
push 0x5c
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 0
call fcn.0045b770
movups xmm0, xmmword [ebp - 0x250]
xor eax, eax
lea ecx, [ebp - 0x250]
mov word [ebp - 0x250], ax
movups xmmword [ebp - 0x2bc], xmm0
movq xmm0, qword [ebp - 0x240]
movq qword [ebp - 0x2ac], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
call fcn.004013c0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x2ac], 0
je 0x45736e
push 0x1a
push str.system32driversetchosts
lea ecx, [ebp - 0x2bc]
call fcn.0042c490
xorps xmm0, xmm0
mov dword [ebp - 0x294], 0
movups xmmword [ebp - 0x2a4], xmm0
mov dword [ebp - 0x290], 0xf
mov byte [ebp - 0x2a4], 0
lea edx, [ebp - 0x2a4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
call fcn.0045a100
test al, al
jne 0x4573b7
mov byte [ebp - 0x2bd], al
jmp 0x457848
xorps xmm0, xmm0
mov dword [ebp - 0x26c], 0
push 0xd
push str.___r_n____r_n__
lea ecx, [ebp - 0x250]
movq qword [ebp - 0x274], xmm0
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
call fcn.00408f20
push ecx
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x2a4]
lea ecx, [ebp - 0x274]
call fcn.004597e0
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0xf
jbe 0x457457
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45744d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4578c8
push ecx
push edx
call fcn.00472d8e
add esp, 8
mov edi, dword [ebp - 0x274]
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2c8], ecx
cmp edi, ecx
je 0x457836
cmp dword [edi + 0x10], 0
je 0x457825
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x4574a6
mov eax, dword [edi]
cmp byte [eax], 0x23
je 0x457825
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
push 8
push str._S__s_
lea ecx, [ebp - 0x2e8]
movq qword [ebp - 0x238], xmm0
movups xmmword [ebp - 0x2e8], xmm0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
call fcn.00408f20
push ecx
lea eax, [ebp - 0x2e8]
mov byte [ebp - 4], 6
push eax
mov edx, edi
lea ecx, [ebp - 0x238]
call fcn.004597e0
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2d4]
cmp ecx, 0xf
jbe 0x45754b
mov edx, dword [ebp - 0x2e8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x457541
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4578c8
push ecx
push edx
call fcn.00472d8e
add esp, 8
mov ecx, dword [ebp - 0x234]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x238]
sub ecx, esi
imul ecx
mov dword [ebp - 0x2d8], 0
sar edx, 2
mov eax, edx
mov dword [ebp - 0x2d4], 0xf
shr eax, 0x1f
add eax, edx
mov byte [ebp - 0x2e8], 0
cmp eax, 2
jb 0x457810
push esi
lea ecx, [ebp - 0x268]
call fcn.00407330
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 9
call fcn.004578e0
test al, al
jne 0x4575c0
lea ecx, [ebp - 0x268]
call fcn.00457d30
test al, al
je 0x4577b7
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
movq qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov byte [ebp - 4], 0xa
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
sub ecx, esi
imul ecx
mov dword [ebp - 0x2cc], 1
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x457759
mov edi, 0x18
nop
lea eax, [edi + esi]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00407330
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x27c], 0
je 0x4576ad
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp - 0x28c]
cmp edx, 0xf
cmova eax, ecx
cmp byte [eax], 0x23
je 0x457721
lea ecx, [ebp - 0x28c]
call fcn.00457f20
test al, al
je 0x4576ad
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x28c]
push ecx
cmp eax, dword [ebp - 0x224]
je 0x4576a1
mov ecx, eax
call fcn.00407330
add dword [ebp - 0x228], 0x18
jmp 0x4576ad
push eax
lea ecx, [ebp - 0x22c]
call fcn.00450df0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x278]
cmp ecx, 0xf
jbe 0x4576eb
mov edx, dword [ebp - 0x28c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4576e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4578c8
push ecx
push edx
call fcn.00472d8e
add esp, 8
mov ecx, dword [ebp - 0x234]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x238]
add edi, 0x18
inc dword [ebp - 0x2cc]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x2cc], eax
jb 0x457630
jmp 0x457753
mov byte [ebp - 4], 0xa
cmp edx, 0xf
jbe 0x457753
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x457749
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4578c8
push edx
push ecx
call fcn.00472d8e
add esp, 8
mov edi, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x228]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x22c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4577ac
mov esi, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x268]
push ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4577a4
mov edx, eax
call fcn.0045d600
add esp, 8
add dword [esi + 4], 0x24
jmp 0x4577ac
push eax
mov ecx, esi
call fcn.0045bf50
lea ecx, [ebp - 0x22c]
call fcn.0041b5c0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x254]
cmp ecx, 0xf
jbe 0x4577f5
mov edx, dword [ebp - 0x268]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4577eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4578c8
push ecx
push edx
call fcn.00472d8e
add esp, 8
mov byte [ebp - 0x268], 0
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.0041b5c0
mov ecx, dword [ebp - 0x2c8]
add edi, 0x18
mov dword [ebp - 0x2c4], edi
cmp edi, ecx
jne 0x457492
lea ecx, [ebp - 0x274]
mov byte [ebp - 0x2bd], 1
call fcn.0041b5c0
mov ecx, dword [ebp - 0x290]
cmp ecx, 0xf
jbe 0x45787e
mov edx, dword [ebp - 0x2a4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x457874
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4578cd
push ecx
push edx
call fcn.00472d8e
add esp, 8
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0xf
mov byte [ebp - 0x2a4], 0
call fcn.004013c0
mov al, byte [ebp - 0x2bd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a091e
call fcn.004a091e
int3