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

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 0x49373a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d0
mov eax, dword [0x4ba030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2d8], edi
mov dword [ebp - 0x2dc], edi
xorps xmm0, xmm0
mov dword [ebp - 0x2d4], 0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 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 - 0x228]
mov dword [ebp - 0x2d4], 1
push eax
call fcn.00428be0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea esi, [ebp - 0x228]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x487410
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x2cc], edx
mov dword [ebp - 0x2d0], connect
cmp esi, edx
ja 0x487472
mov dword [ebp - 0x2c8], edi
mov eax, edi
cmp edx, 8
jb 0x48744b
mov eax, dword [edi]
mov dword [ebp - 0x2c8], eax
mov dword [edi + 0x10], esi
lea ecx, [ebp - 0x228]
add esi, esi
push esi
push ecx
push eax
call fcn.00428660
mov eax, dword [ebp - 0x2c8]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x4875ac
cmp esi, 0x7ffffffe
ja 0x487c5f
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x48749f
mov eax, SysReAllocString
mov dword [ebp - 0x2c4], eax
mov eax, SysReAllocString
add eax, eax
jmp 0x4874f7
mov eax, edx
shr eax, 1
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2d0]
sub eax, dword [ebp - 0x2c8]
cmp edx, eax
jbe 0x4874cd
mov eax, SysReAllocString
mov dword [ebp - 0x2c4], eax
mov eax, SysReAllocString
add eax, eax
jmp 0x4874f7
mov eax, dword [ebp - 0x2c8]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
mov dword [ebp - 0x2c4], ecx
lea eax, [ecx + 1]
cmp eax, 0x7fffffff
ja 0x487c5a
add eax, eax
cmp eax, 0x1000
jb 0x487526
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x487c5a
push ecx
call fcn.00426ce4
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x487c64
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x2c4]
jmp 0x48753d
test eax, eax
je 0x48753b
push eax
call fcn.00426ce4
mov ecx, dword [ebp - 0x2c4]
add esp, 4
jmp 0x48753d
xor eax, eax
mov dword [edi + 0x10], esi
add esi, esi
mov dword [edi + 0x14], ecx
lea ecx, [ebp - 0x228]
push esi
push ecx
push eax
mov dword [ebp - 0x2bc], eax
call fcn.00428660
mov eax, dword [ebp - 0x2bc]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x2cc]
cmp ecx, 8
jb 0x4875aa
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x48759a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c64
mov eax, edx
push ecx
push eax
call fcn.00426cb3
mov eax, dword [ebp - 0x2bc]
add esp, 8
mov dword [edi], eax
cmp dword [edi + 0x10], 0
jne 0x4875f1
xor ecx, ecx
mov dword [ebp - 0x230], 0
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4875d5
sub ecx, edx
push ecx
push 0
lea ecx, [ebp - 0x240]
call fcn.0040600c
jmp 0x4877af
mov edx, edi
lea ecx, [ebp - 0x288]
call fcn.0040aa3f
mov esi, eax
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x48760f
mov esi, dword [esi]
cmp dword [0x4e4bd4], 0x10
lea ecx, [ebp - 0x270]
mov edx, 0x4e4bc0
cmovae edx, dword [0x4e4bc0]
push str.F78LCyLrmQ1VQMbGx2
call fcn.0040d396
add esp, 4
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x258]
call fcn.0040aab4
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x487652
mov eax, dword [eax]
push esi
mov edx, eax
lea ecx, [ebp - 0x2a0]
call fcn.00488a20
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x244]
cmp ecx, 8
jb 0x4876a7
mov edx, dword [ebp - 0x258]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48769d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c64
push ecx
push edx
call fcn.00426cb3
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
cmp ecx, 0x10
jb 0x487702
mov edx, dword [ebp - 0x270]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4876f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c64
push ecx
push edx
call fcn.00426cb3
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
cmp ecx, 0x10
jb 0x48775b
mov edx, dword [ebp - 0x288]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x487751
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c64
push ecx
push edx
call fcn.00426cb3
add esp, 8
movups xmm0, xmmword [ebp - 0x2a0]
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0xf
movups xmmword [ebp - 0x240], xmm0
mov byte [ebp - 0x288], 0
movq xmm0, qword [ebp - 0x290]
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0xf
mov byte [ebp - 0x2a0], 0
mov dword [ebp - 0x2d4], 3
mov dword [ebp - 4], 4
mov ecx, dword [edi + 0x14]
mov eax, ecx
mov esi, dword [edi + 0x10]
sub eax, esi
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2c4], ecx
cmp eax, 1
jb 0x4877fe
lea edx, [esi + 1]
mov eax, edi
mov dword [edi + 0x10], edx
cmp ecx, 8
jb 0x4877ea
mov eax, dword [edi]
mov ecx, 0x5c
mov word [eax + esi*2], cx
xor ecx, ecx
mov word [eax + edx*2], cx
jmp 0x48797f
mov eax, dword [ebp - 0x2d0]
sub eax, esi
cmp eax, 1
jb 0x487c69
lea eax, [esi + 1]
mov esi, eax
mov dword [ebp - 0x2c0], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x487838
mov eax, SysReAllocString
mov dword [ebp - 0x2bc], connect
add eax, eax
jmp 0x487880
mov eax, dword [ebp - 0x2d0]
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x48785b
mov eax, SysReAllocString
mov dword [ebp - 0x2bc], connect
add eax, eax
jmp 0x487880
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x2bc], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x487c5a
add eax, eax
cmp eax, 0x1000
jb 0x4878ad
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x487c5a
push ecx
call fcn.00426ce4
add esp, 4
test eax, eax
je 0x487c78
mov ecx, dword [ebp - 0x2c4]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4878c6
test eax, eax
je 0x4878c4
push eax
call fcn.00426ce4
mov ecx, dword [ebp - 0x2c4]
add esp, 4
mov esi, eax
jmp 0x4878c6
xor esi, esi
mov eax, dword [ebp - 0x2c0]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x2bc]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x2cc]
lea edx, [eax + eax]
lea eax, [edx + esi]
mov dword [ebp - 0x2bc], eax
push edx
cmp ecx, 8
jb 0x487959
mov eax, dword [edi]
push eax
push esi
mov dword [ebp - 0x2c8], eax
call fcn.00428660
mov eax, dword [ebp - 0x2bc]
mov ecx, 0x5c
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov eax, dword [ebp - 0x2c0]
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c4]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x2c8]
cmp ecx, 0x1000
jb 0x48794d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c78
mov eax, edx
push ecx
push eax
call fcn.00426cb3
add esp, 8
jmp 0x48797d
push edi
push esi
call fcn.00428660
mov eax, dword [ebp - 0x2bc]
mov ecx, 0x5c
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov eax, dword [ebp - 0x2c0]
mov word [esi + eax*2], cx
mov dword [edi], esi
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x2b8]
call fcn.0040aab4
mov ecx, eax
mov dword [ebp - 0x2c4], eax
mov byte [ebp - 4], 5
cmp dword [ecx + 0x14], 8
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x2cc], edx
jb 0x4879b3
mov ecx, dword [ecx]
mov dword [ebp - 0x2c4], ecx
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x2bc], eax
sub eax, esi
mov dword [ebp - 0x2d8], esi
cmp edx, eax
ja 0x487a1c
cmp dword [ebp - 0x2bc], 8
lea eax, [esi + edx]
mov dword [ebp - 0x2cc], eax
mov dword [edi + 0x10], eax
mov dword [ebp - 0x2c0], edi
jb 0x4879ee
mov eax, dword [edi]
mov dword [ebp - 0x2c0], eax
lea eax, [edx + edx]
push eax
mov eax, dword [ebp - 0x2c0]
push ecx
lea eax, [eax + esi*2]
push eax
call fcn.00428660
mov eax, dword [ebp - 0x2c0]
add esp, 0xc
mov ecx, dword [ebp - 0x2cc]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x487bc8
mov eax, dword [ebp - 0x2d0]
sub eax, esi
cmp eax, edx
jb 0x487c6e
lea eax, [esi + edx]
mov esi, eax
mov dword [ebp - 0x2c8], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x487a55
mov eax, SysReAllocString
mov dword [ebp - 0x2c0], connect
add eax, eax
jmp 0x487aa4
mov eax, dword [ebp - 0x2bc]
mov ecx, eax
shr ecx, 1
sub dword [ebp - 0x2d0], ecx
cmp eax, dword [ebp - 0x2d0]
jbe 0x487a80
mov eax, SysReAllocString
mov dword [ebp - 0x2c0], connect
add eax, eax
jmp 0x487aa4
add eax, ecx
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x2c0], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x487c5a
add eax, eax
cmp eax, 0x1000
jb 0x487ad1
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x487c5a
push ecx
call fcn.00426ce4
add esp, 4
test eax, eax
je 0x487c73
mov edx, dword [ebp - 0x2cc]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x487aea
test eax, eax
je 0x487ae8
push eax
call fcn.00426ce4
mov edx, dword [ebp - 0x2cc]
add esp, 4
mov esi, eax
jmp 0x487aea
xor esi, esi
cmp dword [ebp - 0x2bc], 8
mov eax, dword [ebp - 0x2c8]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x2c0]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x2d8]
lea ecx, [eax + eax]
lea eax, [edx + edx]
mov dword [ebp - 0x2c0], eax
lea eax, [esi + ecx]
mov dword [ebp - 0x2d0], eax
push ecx
jb 0x487b96
mov eax, dword [edi]
push eax
push esi
mov dword [ebp - 0x2cc], eax
call fcn.00428660
add esp, 0xc
push dword [ebp - 0x2c0]
push dword [ebp - 0x2c4]
push dword [ebp - 0x2d0]
call fcn.00428660
mov eax, dword [ebp - 0x2c8]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2bc]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x2cc]
cmp ecx, 0x1000
jb 0x487b8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c73
mov eax, edx
push ecx
push eax
call fcn.00426cb3
add esp, 8
jmp 0x487bc6
push edi
push esi
call fcn.00428660
add esp, 0xc
push dword [ebp - 0x2c0]
push dword [ebp - 0x2c4]
push dword [ebp - 0x2d0]
call fcn.00428660
mov eax, dword [ebp - 0x2c8]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [edi], esi
mov ecx, dword [ebp - 0x2a4]
cmp ecx, 8
jb 0x487c04
mov edx, dword [ebp - 0x2b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x487bfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c73
push ecx
push edx
call fcn.00426cb3
add esp, 8
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0x10
jb 0x487c3a
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x487c30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487c78
push ecx
push edx
call fcn.00426cb3
add esp, 8
mov eax, edi
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.00426ca5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004025cf
call fcn.00402479
call fcn.004328af
call fcn.00402479
call fcn.00402479
call fcn.004328af
call fcn.004328af
int3