Function at 0x48bac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc330
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5a205c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
mov dword [0x5b422c], 0
mov dword [0x5b423c], 0
mov dword [0x5b4240], 0
mov byte [ebp - 4], 0
xor eax, eax
mov dword [0x5b423c], 0
mov dword [0x5b4240], 7
mov word [0x5b422c], ax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4d3c20
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x48bcb6
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
test edx, edx
je 0x48bccb
mov esi, edx
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48bb70
sub esi, ecx
mov ecx, dword [0x5b4240]
sar esi, 1
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
ja 0x48bbb9
cmp ecx, 8
mov dword [0x5b423c], esi
mov edi, 0x5b422c
cmovae edi, dword [0x5b422c]
add esi, esi
push esi
push edx
push edi
call fcn.00497eb0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x48bcb6
cmp esi, 0x7ffffffe
ja 0x48be60
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x48bbde
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x48bc18
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x48bbf9
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x48bc18
lea eax, [ecx + edx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x48be5b
add eax, eax
cmp eax, 0x1000
jb 0x48bc3f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x48be5b
push ecx
call fcn.004959e3
add esp, 4
test eax, eax
je 0x48be65
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x48bc52
test eax, eax
je 0x48bc50
push eax
call fcn.004959e3
add esp, 4
mov edi, eax
jmp 0x48bc52
xor edi, edi
mov dword [0x5b423c], esi
add esi, esi
push esi
push dword [ebp - 0x18]
mov dword [0x5b4240], ebx
push edi
call fcn.00497eb0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x48bcb0
mov ecx, dword [0x5b422c]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48bca6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48be65
push edx
push ecx
call fcn.00495c64
add esp, 8
mov dword [0x5b422c], edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x48bccb
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x14], 0
mov ebx, dword [0x5b423c]
test ebx, ebx
je 0x48be22
mov ecx, 0x5b422c
call fcn.0048ced0
movzx eax, word [eax]
cmp eax, 0x5c
je 0x48be22
cmp eax, 0x2f
je 0x48be22
mov esi, dword [0x5b4240]
mov dword [ebp - 0x1c], esi
cmp ebx, esi
jae 0x48bd25
lea eax, [ebx + 1]
cmp esi, 8
mov dword [0x5b423c], eax
mov eax, ecx
cmovae eax, dword [0x5b422c]
mov dword [eax + ebx*2], 0x5c
jmp 0x48be22
mov ecx, 0x7ffffffe
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x48be60
lea edi, [ebx + 1]
or edi, 7
cmp edi, ecx
jbe 0x48bd4a
mov edi, ecx
mov eax, 0xfffffffe
jmp 0x48bd7e
mov eax, esi
shr eax, 1
sub ecx, eax
cmp esi, ecx
jbe 0x48bd60
mov edi, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x48bd7e
add eax, esi
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x48be5b
add eax, eax
cmp eax, 0x1000
jb 0x48bda5
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x48be5b
push ecx
call fcn.004959e3
add esp, 4
test eax, eax
je 0x48be65
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x48bdb8
test eax, eax
je 0x48bdb6
push eax
call fcn.004959e3
add esp, 4
mov esi, eax
jmp 0x48bdb8
xor esi, esi
lea eax, [ebx + 1]
mov dword [0x5b4240], edi
lea edi, [ebx + ebx]
mov dword [0x5b423c], eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
cmp ebx, 8
jb 0x48be43
push dword [ebp - 0x18]
mov edi, dword [0x5b422c]
push edi
push esi
call fcn.00497eb0
mov eax, dword [ebp - 0x18]
lea ebx, [ebx*2 + 2]
add esp, 0xc
mov dword [eax + esi], 0x5c
cmp ebx, 0x1000
jb 0x48be12
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x48be65
mov edi, ecx
push ebx
push edi
call fcn.00495c64
add esp, 8
mov dword [0x5b422c], esi
mov eax, 0x5b422c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004959d0
mov esp, ebp
pop ebp
ret
push edi
push 0x5b422c
push esi
call fcn.00497eb0
add esp, 0xc
mov dword [edi + esi], 0x5c
jmp 0x48be1c
call fcn.00401759
call fcn.004017df
call fcn.0049ed71
int3