Function at 0x4875e0
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 0x493dba
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d0
mov eax, dword [0x4ba080]
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.0044dac0
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 0x4876a0
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x2d0], edx
mov dword [ebp - 0x2cc], SysStringLen
cmp esi, edx
ja 0x487702
mov dword [ebp - 0x2bc], edi
mov eax, edi
cmp edx, 7
jbe 0x4876db
mov eax, dword [edi]
mov dword [ebp - 0x2bc], eax
mov dword [edi + 0x10], esi
lea ecx, [ebp - 0x228]
add esi, esi
push esi
push ecx
push eax
call fcn.0044d540
mov eax, dword [ebp - 0x2bc]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x48783c
cmp esi, 0x7ffffffe
ja 0x487f0e
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x48772f
mov eax, SysReAllocString
mov dword [ebp - 0x2c4], eax
mov eax, SysReAllocString
add eax, eax
jmp 0x487787
mov eax, edx
shr eax, 1
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2cc]
sub eax, dword [ebp - 0x2bc]
cmp edx, eax
jbe 0x48775d
mov eax, SysReAllocString
mov dword [ebp - 0x2c4], eax
mov eax, SysReAllocString
add eax, eax
jmp 0x487787
mov eax, dword [ebp - 0x2bc]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
mov dword [ebp - 0x2c4], ecx
lea eax, [ecx + 1]
cmp eax, 0x7fffffff
ja 0x487f09
add eax, eax
cmp eax, 0x1000
jb 0x4877b6
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x487f09
push ecx
call fcn.0044b99d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x487f13
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x2c4]
jmp 0x4877cd
test eax, eax
je 0x4877cb
push eax
call fcn.0044b99d
mov ecx, dword [ebp - 0x2c4]
add esp, 4
jmp 0x4877cd
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 - 0x2c0], eax
call fcn.0044d540
mov eax, dword [ebp - 0x2c0]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x2d0]
cmp ecx, 7
jbe 0x48783a
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x48782a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487f13
mov eax, edx
push ecx
push eax
call fcn.0044b96c
mov eax, dword [ebp - 0x2c0]
add esp, 8
mov dword [edi], eax
cmp dword [edi + 0x10], 0
jne 0x487881
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 0x487865
sub ecx, edx
push ecx
push 0
lea ecx, [ebp - 0x240]
call fcn.00406035
jmp 0x487a3f
mov edx, edi
lea ecx, [ebp - 0x288]
call fcn.0040ae2e
mov esi, eax
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 0xf
jbe 0x48789f
mov esi, dword [esi]
cmp dword [0x4e4c0c], 0xf
lea ecx, [ebp - 0x270]
mov edx, 0x4e4bf8
cmova edx, dword [0x4e4bf8]
push str.F78LCyLrmQ1VQMbGx2
call fcn.0040d900
add esp, 4
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x258]
call fcn.0040aea3
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
jbe 0x4878e2
mov eax, dword [eax]
push esi
mov edx, eax
lea ecx, [ebp - 0x2a0]
call fcn.00488cc0
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x244]
cmp ecx, 7
jbe 0x487937
mov edx, dword [ebp - 0x258]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48792d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487f13
push ecx
push edx
call fcn.0044b96c
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, 0xf
jbe 0x487992
mov edx, dword [ebp - 0x270]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x487988
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487f13
push ecx
push edx
call fcn.0044b96c
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, 0xf
jbe 0x4879eb
mov edx, dword [ebp - 0x288]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4879e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487f13
push ecx
push edx
call fcn.0044b96c
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 edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2c4], edx
cmp eax, 1
jb 0x487a8e
lea esi, [ecx + 1]
mov eax, edi
mov dword [edi + 0x10], esi
cmp edx, 7
jbe 0x487a7a
mov eax, dword [edi]
mov edx, 0x5c
mov word [eax + ecx*2], dx
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x487c27
mov eax, dword [ebp - 0x2cc]
sub eax, ecx
cmp eax, 1
jb 0x487f18
lea esi, [ecx + 1]
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x487ac0
mov eax, SysReAllocString
mov dword [ebp - 0x2c0], SysStringLen
add eax, eax
jmp 0x487b17
mov eax, edx
shr eax, 1
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2cc]
sub eax, dword [ebp - 0x2bc]
cmp edx, eax
jbe 0x487aed
mov eax, SysReAllocString
mov dword [ebp - 0x2c0], SysStringLen
add eax, eax
jmp 0x487b17
mov eax, dword [ebp - 0x2bc]
add eax, edx
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x2c0], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x487f09
add eax, eax
cmp eax, 0x1000
jb 0x487b44
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x487f09
push ecx
call fcn.0044b99d
add esp, 4
test eax, eax
je 0x487f27
mov ecx, dword [ebp - 0x2c8]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x487b5d
test eax, eax
je 0x487b5b
push eax
call fcn.0044b99d
mov ecx, dword [ebp - 0x2c8]
add esp, 4
mov esi, eax
jmp 0x487b5d
xor esi, esi
cmp dword [ebp - 0x2c4], 7
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x2c0]
mov dword [edi + 0x14], eax
lea eax, [ecx + ecx]
lea ecx, [ecx + 1]
mov dword [ebp - 0x2d0], eax
lea edx, [esi + eax]
lea ecx, [esi + ecx*2]
mov dword [ebp - 0x2c8], edx
mov dword [ebp - 0x2c0], ecx
jbe 0x487c01
push dword [ebp - 0x2d0]
mov eax, dword [edi]
push eax
push esi
mov dword [ebp - 0x2bc], eax
call fcn.0044d540
mov eax, dword [ebp - 0x2c8]
mov ecx, 0x5c
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov eax, dword [ebp - 0x2c0]
mov word [eax], cx
mov eax, dword [ebp - 0x2c4]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x2bc]
cmp ecx, 0x1000
jb 0x487bf5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487f27
mov eax, edx
push ecx
push eax
call fcn.0044b96c
add esp, 8
jmp 0x487c25
push eax
push edi
push esi
call fcn.0044d540
mov eax, dword [ebp - 0x2c8]
mov ecx, 0x5c
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov eax, dword [ebp - 0x2c0]
mov word [eax], cx
mov dword [edi], esi
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x2b8]
call fcn.0040aea3
mov ecx, eax
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 4], 5
cmp dword [ecx + 0x14], 7
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x2d8], esi
jbe 0x487c5b
mov ecx, dword [ecx]
mov dword [ebp - 0x2bc], ecx
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x2c0], eax
sub eax, edx
mov dword [ebp - 0x2c8], edx
cmp esi, eax
ja 0x487cbe
cmp dword [ebp - 0x2c0], 7
lea eax, [esi + edx]
mov dword [ebp - 0x2d0], eax
mov dword [edi + 0x10], eax
mov dword [ebp - 0x2bc], edi
jbe 0x487c96
mov eax, dword [edi]
mov dword [ebp - 0x2bc], eax
lea eax, [esi + esi]
mov esi, dword [ebp - 0x2bc]
push eax
push ecx
lea eax, [esi + edx*2]
push eax
call fcn.0044d540
mov eax, dword [ebp - 0x2d0]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x487e77
mov eax, dword [ebp - 0x2cc]
sub eax, edx
cmp eax, esi
jb 0x487f1d
lea eax, [edx + esi]
mov esi, eax
mov dword [ebp - 0x2d0], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x487cf7
mov eax, SysReAllocString
mov dword [ebp - 0x2c4], SysStringLen
add eax, eax
jmp 0x487d46
mov eax, dword [ebp - 0x2c0]
mov ecx, eax
shr ecx, 1
sub dword [ebp - 0x2cc], ecx
cmp eax, dword [ebp - 0x2cc]
jbe 0x487d22
mov eax, SysReAllocString
mov dword [ebp - 0x2c4], SysStringLen
add eax, eax
jmp 0x487d46
add eax, ecx
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x2c4], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x487f09
add eax, eax
cmp eax, 0x1000
jb 0x487d73
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x487f09
push ecx
call fcn.0044b99d
add esp, 4
test eax, eax
je 0x487f22
mov edx, dword [ebp - 0x2c8]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x487d8c
test eax, eax
je 0x487d8a
push eax
call fcn.0044b99d
mov edx, dword [ebp - 0x2c8]
add esp, 4
mov esi, eax
jmp 0x487d8c
xor esi, esi
mov eax, dword [ebp - 0x2d0]
lea ecx, [edx + edx]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x2c4]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x2d8]
push ecx
lea edx, [eax + eax]
add eax, dword [ebp - 0x2c8]
cmp dword [ebp - 0x2c0], 7
mov dword [ebp - 0x2c4], edx
lea edx, [esi + ecx]
mov dword [ebp - 0x2cc], edx
lea eax, [esi + eax*2]
mov dword [ebp - 0x2d0], eax
jbe 0x487e46
mov eax, dword [edi]
push eax
push esi
mov dword [ebp - 0x2c8], eax
call fcn.0044d540
add esp, 0xc
push dword [ebp - 0x2c4]
push dword [ebp - 0x2bc]
push dword [ebp - 0x2cc]
call fcn.0044d540
mov eax, dword [ebp - 0x2d0]
xor ecx, ecx
add esp, 0xc
mov word [eax], cx
mov eax, dword [ebp - 0x2c0]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x2c8]
cmp ecx, 0x1000
jb 0x487e3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487f22
mov eax, edx
push ecx
push eax
call fcn.0044b96c
add esp, 8
jmp 0x487e75
push edi
push esi
call fcn.0044d540
add esp, 0xc
push dword [ebp - 0x2c4]
push dword [ebp - 0x2bc]
push dword [ebp - 0x2cc]
call fcn.0044d540
mov eax, dword [ebp - 0x2d0]
add esp, 0xc
xor ecx, ecx
mov word [eax], cx
mov dword [edi], esi
mov ecx, dword [ebp - 0x2a4]
cmp ecx, 7
jbe 0x487eb3
mov edx, dword [ebp - 0x2b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x487ea9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487f22
push ecx
push edx
call fcn.0044b96c
add esp, 8
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0xf
jbe 0x487ee9
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x487edf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487f27
push ecx
push edx
call fcn.0044b96c
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.0044b95e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004025de
call fcn.00402483
call fcn.0045775f
call fcn.00402483
call fcn.00402483
call fcn.0045775f
call fcn.0045775f
int3