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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007851f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b4], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2d0], ebx
push eax
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
call fcn.1005cdf0
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x10046c27
cmp dword [ebp - 0x25c], 0
jl 0x10046c1c
push 1
push str._0_9__
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call fcn.10024960
mov byte [ebp - 4], 1
cmp dword [ebp - 0x244], 8
lea esi, [ebp - 0x258]
cmovae esi, dword [ebp - 0x258]
cmp word [esi], 0
jne 0x10046799
xor ecx, ecx
jmp 0x100467af
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100467a0
sub ecx, edx
sar ecx, 1
push ecx
push 0x10
lea eax, [ebp - 0x22c]
push eax
lea edx, [esi + ecx*2]
push ecx
mov ecx, esi
call fcn.100251e0
add esp, 0x10
mov byte [ebp - 4], 0
test al, al
mov eax, dword [ebp - 0x22c]
jne 0x10046842
test eax, eax
je 0x100467ff
dec dword [eax + 0x20]
jne 0x100467ff
mov esi, dword [ebp - 0x22c]
test esi, esi
je 0x100467ff
lea eax, [esi + 0xc]
mov ecx, esi
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
jne 0x100467e8
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x22c], 0
test ecx, ecx
je 0x10046c06
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10046c06
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
dec dword [ebp - 0x25c]
lea ecx, [ebp - 0x260]
call fcn.1005cfb0
jmp 0x10046722
test eax, eax
je 0x1004686c
dec dword [eax + 0x20]
jne 0x1004686c
mov esi, dword [ebp - 0x22c]
test esi, esi
je 0x1004686c
lea eax, [esi + 0xc]
mov ecx, esi
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
jne 0x10046855
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x22c], 0
test ecx, ecx
je 0x10046891
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10046891
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov edx, dword [ebp - 0x240]
xor eax, eax
cmp edx, dword [ebp - 0x23c]
mov dword [ebp - 0x264], 7
cmove edx, eax
mov dword [ebp - 0x268], eax
mov word [ebp - 0x278], ax
cmp word [edx], ax
jne 0x100468c2
xor ecx, ecx
jmp 0x100468d6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100468c7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x278]
call fcn.10003de0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x268], 0
jne 0x100469c0
cmp dword [ebp - 0x244], 8
lea edx, [ebp - 0x258]
cmovae edx, dword [ebp - 0x258]
xor eax, eax
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
cmp word [edx], ax
jne 0x1004692e
xor ecx, ecx
jmp 0x10046942
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046933
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2ac]
call fcn.10003de0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x298], 8
lea eax, [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x2ac]
push eax
push dword [ebp - 0x2b0]
push ecx
mov ecx, dword [ebp - 0x2b4]
call fcn.1004bcb0
cmp dword [ebp - 0x298], 8
jb 0x1004698e
push dword [ebp - 0x2ac]
call edi
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x264], 8
jb 0x10046c06
push dword [ebp - 0x278]
call edi
dec dword [ebp - 0x25c]
add esp, 4
lea ecx, [ebp - 0x260]
call fcn.1005cfb0
jmp 0x10046722
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 8
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
cmp word [ebp - 0x21c], ax
jne 0x10046a1d
xor ecx, ecx
jmp 0x10046a35
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046a26
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.10003de0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x290]
call fcn.10058b60
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x298], 8
jb 0x10046a8d
push dword [ebp - 0x2ac]
call edi
add esp, 4
push 4
xor eax, eax
push str..lnk
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
call fcn.10008160
xor eax, eax
push eax
push 0x1007d0cc
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2b8], 7
mov dword [ebp - 0x2bc], 0
mov word [ebp - 0x2cc], ax
call fcn.10003de0
mov byte [ebp - 4], 7
or ebx, 1
lea edx, [ebp - 0x2cc]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x2d0], ebx
call fcn.10048b80
test al, al
je 0x10046b25
lea ecx, [ebp - 0x290]
call fcn.100491a0
test al, al
je 0x10046b25
xor bl, bl
jmp 0x10046b27
mov bl, 1
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x294]
test al, 1
je 0x10046b55
and eax, 0xfffffffe
cmp dword [ebp - 0x2b8], 8
mov dword [ebp - 0x294], eax
jb 0x10046b55
push dword [ebp - 0x2cc]
call edi
add esp, 4
test bl, bl
je 0x10046bb8
cmp dword [ebp - 0x244], 8
lea eax, [ebp - 0x258]
cmovae eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.10008e70
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2b8], 8
lea eax, [ebp - 0x2cc]
cmovae eax, dword [ebp - 0x2cc]
push eax
push dword [ebp - 0x2b0]
push ecx
mov ecx, dword [ebp - 0x2b4]
call fcn.1004bcb0
cmp dword [ebp - 0x2b8], 8
jb 0x10046bb8
push dword [ebp - 0x2cc]
call edi
add esp, 4
cmp dword [ebp - 0x27c], 8
jb 0x10046bcc
push dword [ebp - 0x290]
call edi
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x264], 8
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
jb 0x10046c00
push dword [ebp - 0x278]
call edi
add esp, 4
mov ebx, dword [ebp - 0x294]
dec dword [ebp - 0x25c]
lea ecx, [ebp - 0x260]
call fcn.1005cfb0
jmp 0x10046722
test eax, eax
je 0x10046c27
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x10046c55
push eax
call edi
add esp, 4
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
cmp dword [ebp - 0x244], 8
jb 0x10046c69
push dword [ebp - 0x258]
call edi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4