Function at 0x48a740
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497599
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4be034]
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 edi, ecx
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x26c], edi
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x268], 1
push eax
call fcn.00429200
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea esi, [ebp - 0x220]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48a7e0
sub esi, ecx
mov ecx, dword [edi + 0x14]
sar esi, 1
mov dword [ebp - 0x258], ecx
cmp esi, ecx
ja 0x48a826
mov ebx, edi
cmp ecx, 8
jb 0x48a805
mov ebx, dword [edi]
mov dword [edi + 0x10], esi
lea eax, [ebp - 0x220]
add esi, esi
push esi
push eax
push ebx
call fcn.00428c80
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x48a932
cmp esi, 0x7ffffffe
ja 0x48ad58
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x48a850
mov dword [ebp - 0x254], connect
mov eax, 0xfffffffe
jmp 0x48a895
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x48a870
mov dword [ebp - 0x254], connect
mov eax, 0xfffffffe
jmp 0x48a895
lea eax, [ecx + edx]
cmp ebx, eax
cmovb ebx, eax
mov dword [ebp - 0x254], ebx
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x48ad53
add eax, eax
cmp eax, 0x1000
jb 0x48a8bc
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x48ad53
push ecx
call fcn.004272e4
add esp, 4
test eax, eax
je 0x48ad67
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x48a8cf
test eax, eax
je 0x48a8cd
push eax
call fcn.004272e4
add esp, 4
mov ebx, eax
jmp 0x48a8cf
xor ebx, ebx
mov eax, dword [ebp - 0x254]
mov dword [edi + 0x10], esi
add esi, esi
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x220]
push esi
push eax
push ebx
call fcn.00428c80
mov ecx, dword [ebp - 0x258]
xor eax, eax
add esp, 0xc
mov word [ebx + esi], ax
cmp ecx, 8
jb 0x48a930
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x48a926
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ad67
mov eax, edx
push ecx
push eax
call fcn.004272b3
add esp, 8
mov dword [edi], ebx
mov edx, edi
lea ecx, [ebp - 0x238]
call fcn.0048ad80
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x14]
mov eax, esi
mov ebx, dword [edi + 0x10]
sub eax, ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], esi
cmp eax, 1
jb 0x48a984
lea ecx, [ebx + 1]
mov eax, edi
mov dword [edi + 0x10], ecx
cmp esi, 8
jb 0x48a970
mov eax, dword [edi]
mov edx, 0x5c
mov word [eax + ebx*2], dx
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x48aac3
mov edx, SysReAllocString
mov eax, edx
sub eax, ebx
cmp eax, 1
jb 0x48ad5d
lea eax, [ebx + 1]
mov ebx, eax
mov dword [ebp - 0x254], eax
or ebx, 7
cmp ebx, edx
jbe 0x48a9b1
mov ebx, edx
mov eax, 0xfffffffe
jmp 0x48a9e5
mov ecx, esi
mov eax, edx
shr ecx, 1
sub eax, ecx
cmp esi, eax
jbe 0x48a9c6
mov ebx, edx
mov eax, 0xfffffffe
jmp 0x48a9e5
lea eax, [esi + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x48ad53
add eax, eax
cmp eax, 0x1000
jb 0x48aa0c
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x48ad53
push ecx
call fcn.004272e4
add esp, 4
test eax, eax
je 0x48ad6c
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x48aa1f
test eax, eax
je 0x48aa1d
push eax
call fcn.004272e4
add esp, 4
mov esi, eax
jmp 0x48aa1f
xor esi, esi
mov eax, dword [ebp - 0x254]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x258]
add eax, eax
mov dword [edi + 0x14], ebx
cmp dword [ebp - 0x25c], 8
push eax
lea ebx, [eax + esi]
mov dword [ebp - 0x258], ebx
jb 0x48aaa3
mov ebx, dword [edi]
push ebx
push esi
call fcn.00428c80
mov eax, dword [ebp - 0x258]
mov ecx, 0x5c
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov eax, dword [ebp - 0x254]
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x25c]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x48aa97
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x48ad6c
mov ebx, edx
push ecx
push ebx
call fcn.004272b3
add esp, 8
jmp 0x48aac1
push edi
push esi
call fcn.00428c80
mov eax, 0x5c
add esp, 0xc
mov word [ebx], ax
xor ecx, ecx
mov eax, dword [ebp - 0x254]
mov word [esi + eax*2], cx
mov dword [edi], esi
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x250]
call fcn.0040a4ef
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x254], eax
jb 0x48aaec
mov ecx, dword [eax]
mov dword [ebp - 0x254], ecx
mov ebx, dword [eax + 0x10]
mov edx, dword [edi + 0x14]
mov eax, edx
mov esi, dword [edi + 0x10]
sub eax, esi
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x264], edx
cmp ebx, eax
ja 0x48ab54
mov dword [ebp - 0x25c], edi
lea eax, [esi + ebx]
mov dword [edi + 0x10], eax
mov ecx, edi
cmp edx, 8
jb 0x48ab2a
mov ecx, dword [edi]
mov dword [ebp - 0x25c], ecx
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x254]
lea eax, [ecx + esi*2]
push eax
call fcn.00428c80
mov eax, dword [ebp - 0x25c]
lea ecx, [esi + ebx]
add esp, 0xc
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x48acc3
mov ecx, SysReAllocString
mov eax, ecx
sub eax, esi
cmp eax, ebx
jb 0x48ad62
lea eax, [esi + ebx]
mov ebx, eax
mov dword [ebp - 0x25c], eax
or ebx, 7
cmp ebx, ecx
jbe 0x48ab80
mov ebx, ecx
mov eax, 0xfffffffe
jmp 0x48abb4
mov eax, edx
shr eax, 1
sub ecx, eax
cmp edx, ecx
jbe 0x48ab96
mov ebx, SysReAllocString
mov eax, 0xfffffffe
jmp 0x48abb4
add eax, edx
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x48ad53
add eax, eax
cmp eax, 0x1000
jb 0x48abe1
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x48ad53
push ecx
call fcn.004272e4
add esp, 4
test eax, eax
je 0x48ad67
mov edx, dword [ebp - 0x264]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x48abfa
test eax, eax
je 0x48abf8
push eax
call fcn.004272e4
mov edx, dword [ebp - 0x264]
add esp, 4
mov esi, eax
jmp 0x48abfa
xor esi, esi
mov eax, dword [ebp - 0x25c]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x258]
mov dword [edi + 0x14], ebx
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x260]
push ecx
lea ebx, [eax + eax]
mov dword [ebp - 0x260], ebx
lea eax, [ecx + esi]
mov dword [ebp - 0x258], eax
cmp edx, 8
jb 0x48ac96
mov ebx, dword [edi]
push ebx
push esi
call fcn.00428c80
add esp, 0xc
push dword [ebp - 0x260]
push dword [ebp - 0x254]
push dword [ebp - 0x258]
call fcn.00428c80
mov eax, dword [ebp - 0x25c]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x48ac8a
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x48ad67
mov ebx, edx
push ecx
push ebx
call fcn.004272b3
add esp, 8
jmp 0x48acc1
push edi
push esi
call fcn.00428c80
add esp, 0xc
push ebx
push dword [ebp - 0x254]
push dword [ebp - 0x258]
call fcn.00428c80
mov eax, dword [ebp - 0x25c]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [edi], esi
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x48acff
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48acf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ad67
push edx
push ecx
call fcn.004272b3
add esp, 8
mov edx, dword [ebp - 0x224]
cmp edx, 0x10
jb 0x48ad35
mov ecx, dword [ebp - 0x238]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48ad2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ad6c
push edx
push ecx
call fcn.004272b3
add esp, 8
mov eax, edi
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.004272a5
mov esp, ebp
pop ebp
ret
call fcn.004021c5
call fcn.0040206f
call fcn.0040206f
call fcn.0040206f
call fcn.004324bf
call fcn.004324bf
int3