Function at 0x4571e0
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 0x4c50a3
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 0x45726a
push eax
push 0x4f1e48
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x2ac], eax
movups xmmword [ebp - 0x2bc], xmm0
mov dword [ebp - 0x2a8], eax
call fcn.004226b0
jmp 0x45730c
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 0x457290
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.0045b560
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.004013d0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x2ac], 0
je 0x45732e
push 0x1a
push str.system32driversetchosts
lea ecx, [ebp - 0x2bc]
call fcn.0042c350
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.00459f90
test al, al
jne 0x457377
mov byte [ebp - 0x2bd], al
jmp 0x457808
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.00459670
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0xf
jbe 0x457417
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45740d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457888
push ecx
push edx
call fcn.00472bfe
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 0x4577f6
cmp dword [edi + 0x10], 0
je 0x4577e5
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x457466
mov eax, dword [edi]
cmp byte [eax], 0x23
je 0x4577e5
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.00459670
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2d4]
cmp ecx, 0xf
jbe 0x45750b
mov edx, dword [ebp - 0x2e8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x457501
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457888
push ecx
push edx
call fcn.00472bfe
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 0x4577d0
push esi
lea ecx, [ebp - 0x268]
call fcn.00407330
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 9
call fcn.004578a0
test al, al
jne 0x457580
lea ecx, [ebp - 0x268]
call fcn.00457cf0
test al, al
je 0x457777
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 0x457719
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 0x45766d
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 0x4576e1
lea ecx, [ebp - 0x28c]
call fcn.00457ee0
test al, al
je 0x45766d
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x28c]
push ecx
cmp eax, dword [ebp - 0x224]
je 0x457661
mov ecx, eax
call fcn.00407330
add dword [ebp - 0x228], 0x18
jmp 0x45766d
push eax
lea ecx, [ebp - 0x22c]
call fcn.00450db0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x278]
cmp ecx, 0xf
jbe 0x4576ab
mov edx, dword [ebp - 0x28c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4576a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457888
push ecx
push edx
call fcn.00472bfe
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 0x4575f0
jmp 0x457713
mov byte [ebp - 4], 0xa
cmp edx, 0xf
jbe 0x457713
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x457709
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457888
push edx
push ecx
call fcn.00472bfe
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 0x45776c
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 0x457764
mov edx, eax
call fcn.0045d3f0
add esp, 8
add dword [esi + 4], 0x24
jmp 0x45776c
push eax
mov ecx, esi
call fcn.0045bd40
lea ecx, [ebp - 0x22c]
call fcn.0041b5b0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x254]
cmp ecx, 0xf
jbe 0x4577b5
mov edx, dword [ebp - 0x268]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4577ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457888
push ecx
push edx
call fcn.00472bfe
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.0041b5b0
mov ecx, dword [ebp - 0x2c8]
add edi, 0x18
mov dword [ebp - 0x2c4], edi
cmp edi, ecx
jne 0x457452
lea ecx, [ebp - 0x274]
mov byte [ebp - 0x2bd], 1
call fcn.0041b5b0
mov ecx, dword [ebp - 0x290]
cmp ecx, 0xf
jbe 0x45783e
mov edx, dword [ebp - 0x2a4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x457834
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45788d
push ecx
push edx
call fcn.00472bfe
add esp, 8
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0xf
mov byte [ebp - 0x2a4], 0
call fcn.004013d0
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.0047299a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a074e
call fcn.004a074e
int3