Function at 0x1002c300
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.10009c50
test eax, eax
lea eax, [ebp - 0x270]
push 0x1020527c
push eax
setne byte [0x102575b0]
call fcn.100092f0
add esp, 8
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002c360
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x254]
call fcn.100070c0
mov edx, dword [ebp - 0x270]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002c39c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x240]
lea ecx, [ebp - 0x254]
mov esi, dword [ebp - 0x254]
cmp edi, 8
jb 0x1002c3b5
mov ecx, esi
mov edx, dword [ebp - 0x244]
test edx, edx
je 0x1002c65f
lea eax, [edx - 1]
cmp eax, 0xffffffff
jb 0x1002c3ce
or eax, 0xffffffff
cmp word [ecx + eax*2], 0x5c
lea eax, [ecx + eax*2]
je 0x1002c3e9
cmp eax, ecx
je 0x1002c65f
sub eax, 2
cmp word [eax], 0x5c
jne 0x1002c3d8
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x1002c65f
xor ecx, ecx
mov dword [ebp - 0x214], 0
inc eax
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], cx
cmp edx, eax
jb 0x1002c41a
mov edx, eax
lea eax, [ebp - 0x254]
cmp edi, 8
jb 0x1002c427
mov eax, esi
push edx
push eax
lea ecx, [ebp - 0x224]
call fcn.100070c0
mov ecx, 0x1023c9a8
call fcn.10005250
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x224]
mov dword [0x1023c9a8], eax
mov eax, dword [ebp - 0x220]
mov dword [0x1023c9ac], eax
mov eax, dword [ebp - 0x21c]
mov dword [0x1023c9b0], eax
mov eax, dword [ebp - 0x218]
mov dword [0x1023c9b4], eax
mov eax, dword [ebp - 0x214]
mov dword [0x1023c9b8], eax
mov eax, dword [ebp - 0x210]
mov dword [0x1023c9bc], eax
xor eax, eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.10005250
cmp dword [0x1023c9bc], 8
mov edx, 0x1023c9a8
mov ecx, dword [0x1023c9a8]
jb 0x1002c4be
mov edx, ecx
mov esi, 0x1023c9a8
jb 0x1002c4c7
mov esi, ecx
mov eax, dword [0x1023c9b8]
lea eax, [esi + eax*2]
mov esi, 0x1023c9a8
jb 0x1002c4d8
mov esi, ecx
mov ecx, eax
xor edi, edi
sub ecx, esi
inc ecx
shr ecx, 1
cmp eax, esi
sbb ebx, ebx
not ebx
and ebx, ecx
je 0x1002c512
sub edx, esi
mov dword [ebp - 0x270], edx
movzx eax, word [esi]
push eax
call sub.msvcrt.dll_towlower
mov ecx, dword [ebp - 0x270]
lea esi, [esi + 2]
inc edi
add esp, 4
mov word [esi + ecx - 2], ax
cmp edi, ebx
jne 0x1002c4f3
cmp byte [0x102575b0], 0
je 0x1002c65c
push 0x15
xor eax, eax
mov dword [ebp - 0x214], 0
push str.program_files__x86__
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.100070c0
push 0xf
xor eax, eax
mov dword [ebp - 0x22c], 0
push str.program_files_
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
call fcn.100070c0
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
jb 0x1002c592
mov eax, dword [ebp - 0x224]
mov edi, dword [0x1023c9bc]
mov ecx, 0x1023c9a8
mov esi, dword [0x1023c9a8]
cmp edi, 8
jb 0x1002c5aa
mov ecx, esi
push dword [ebp - 0x214]
mov ebx, dword [0x1023c9b8]
push eax
push 0
push ebx
push ecx
call fcn.1002bcf0
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0x270], ecx
cmp ecx, 0xffffffff
je 0x1002c646
mov edx, 0x1023c9c0
cmp edx, 0x1023c9a8
je 0x1002c5fd
mov ecx, 0x1023c9a8
cmp edi, 8
jb 0x1002c5e9
mov ecx, esi
push ebx
push ecx
mov ecx, edx
call fcn.100070c0
mov ecx, dword [ebp - 0x270]
mov edx, 0x1023c9c0
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
jb 0x1002c612
mov eax, dword [ebp - 0x23c]
push dword [ebp - 0x22c]
push eax
push dword [ebp - 0x214]
push ecx
mov ecx, edx
call fcn.10007630
cmp eax, 0x1023c9c0
je 0x1002c646
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x1002c638
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, 0x1023c9c0
push edx
call fcn.100070c0
lea ecx, [ebp - 0x23c]
call fcn.10005250
lea ecx, [ebp - 0x224]
call fcn.10005250
or ebx, 0xffffffff
lea eax, [ebp - 0x270]
push str.360sd.exe
push eax
call fcn.100092f0
add esp, 8
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002c680
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x254]
call fcn.100070c0
mov edx, dword [ebp - 0x270]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002c6b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x240]
lea ecx, [ebp - 0x254]
mov esi, dword [ebp - 0x254]
cmp edi, 8
jb 0x1002c6d2
mov ecx, esi
mov edx, dword [ebp - 0x244]
test edx, edx
je 0x1002c97c
lea eax, [edx - 1]
cmp eax, 0xffffffff
jb 0x1002c6eb
or eax, 0xffffffff
cmp word [ecx + eax*2], 0x5c
lea eax, [ecx + eax*2]
je 0x1002c706
cmp eax, ecx
je 0x1002c97c
sub eax, 2
cmp word [eax], 0x5c
jne 0x1002c6f5
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x1002c97c
xor ecx, ecx
mov dword [ebp - 0x214], 0
inc eax
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], cx
cmp edx, eax
jb 0x1002c737
mov edx, eax
lea eax, [ebp - 0x254]
cmp edi, 8
jb 0x1002c744
mov eax, esi
push edx
push eax
lea ecx, [ebp - 0x224]
call fcn.100070c0
mov ecx, 0x1023c9d8
call fcn.10005250
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x224]
mov dword [0x1023c9d8], eax
mov eax, dword [ebp - 0x220]
mov dword [0x1023c9dc], eax
mov eax, dword [ebp - 0x21c]
mov dword [0x1023c9e0], eax
mov eax, dword [ebp - 0x218]
mov dword [0x1023c9e4], eax
mov eax, dword [ebp - 0x214]
mov dword [0x1023c9e8], eax
mov eax, dword [ebp - 0x210]
mov dword [0x1023c9ec], eax
xor eax, eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.10005250
cmp dword [0x1023c9ec], 8
mov edx, 0x1023c9d8
mov ecx, dword [0x1023c9d8]
jb 0x1002c7db
mov edx, ecx
mov esi, 0x1023c9d8
jb 0x1002c7e4
mov esi, ecx
mov eax, dword [0x1023c9e8]
lea eax, [esi + eax*2]
mov esi, 0x1023c9d8
jb 0x1002c7f5
mov esi, ecx
mov ecx, eax
xor edi, edi
sub ecx, esi
inc ecx
shr ecx, 1
cmp eax, esi
sbb ebx, ebx
not ebx
and ebx, ecx
je 0x1002c82f
sub edx, esi
mov dword [ebp - 0x270], edx
movzx eax, word [esi]
push eax
call sub.msvcrt.dll_towlower
mov ecx, dword [ebp - 0x270]
lea esi, [esi + 2]
inc edi
add esp, 4
mov word [esi + ecx - 2], ax
cmp edi, ebx
jne 0x1002c810
cmp byte [0x102575b0], 0
je 0x1002c979
push 0x15
xor eax, eax
mov dword [ebp - 0x214], 0
push str.program_files__x86__
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.100070c0
push 0xf
xor eax, eax
mov dword [ebp - 0x22c], 0
push str.program_files_
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
call fcn.100070c0
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
jb 0x1002c8af
mov eax, dword [ebp - 0x224]
mov edi, dword [0x1023c9ec]
mov ecx, 0x1023c9d8
mov esi, dword [0x1023c9d8]
cmp edi, 8
jb 0x1002c8c7
mov ecx, esi
push dword [ebp - 0x214]
mov ebx, dword [0x1023c9e8]
push eax
push 0
push ebx
push ecx
call fcn.1002bcf0
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0x270], ecx
cmp ecx, 0xffffffff
je 0x1002c963
mov edx, 0x1023c9f0
cmp edx, 0x1023c9d8
je 0x1002c91a
mov ecx, 0x1023c9d8
cmp edi, 8
jb 0x1002c906
mov ecx, esi
push ebx
push ecx
mov ecx, edx
call fcn.100070c0
mov ecx, dword [ebp - 0x270]
mov edx, 0x1023c9f0
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
jb 0x1002c92f
mov eax, dword [ebp - 0x23c]
push dword [ebp - 0x22c]
push eax
push dword [ebp - 0x214]
push ecx
mov ecx, edx
call fcn.10007630
cmp eax, 0x1023c9f0
je 0x1002c963
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x1002c955
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, 0x1023c9f0
push edx
call fcn.100070c0
lea ecx, [ebp - 0x23c]
call fcn.10005250
lea ecx, [ebp - 0x224]
call fcn.10005250
or ebx, 0xffffffff
lea eax, [ebp - 0x270]
push str._SystemRoot_System32
push eax
call fcn.10008d60
add esp, 8
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov word [ebp - 0x23c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002c9b4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.100070c0
mov edx, dword [ebp - 0x270]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002c9ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x102575b4
sub esp, 0x18
lea eax, [ebp - 0x23c]
mov ecx, esp
push eax
call fcn.10005170
call fcn.1002d3f0
lea eax, [ebp - 0x270]
push str._systemroot_SysWOW64_
push eax
call fcn.10008d60
add esp, 0x24
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ca23
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.100070c0
mov edx, dword [ebp - 0x270]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002ca5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x102575b4
sub esp, 0x18
lea eax, [ebp - 0x23c]
mov ecx, esp
push eax
call fcn.10005170
call fcn.1002d3f0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x28
lea eax, [ebp - 0x20c]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1002cbe5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor eax, eax
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
lea edx, [ecx + 2]
jmp 0x1002cae0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cae0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x26c]
call fcn.100070c0
push 0x102575b4
sub esp, 0x18
lea eax, [ebp - 0x26c]
mov ecx, esp
push eax
call fcn.10005170
call fcn.1002d3f0
add esp, 0x1c
cmp byte [0x102575b0], 0
je 0x1002cbda
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x270]
call fcn.10002490
push 0x10202940
push str.__x86_
lea ecx, [ebp - 0x270]
call fcn.10003450
mov esi, dword [ebp - 0x270]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cb80
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x224]
call fcn.100070c0
push 0x102575b4
sub esp, 0x18
lea eax, [ebp - 0x224]
mov ecx, esp
push eax
call fcn.10005170
call fcn.1002d3f0
add esp, 0x1c
lea ecx, [ebp - 0x224]
call fcn.10005250
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002cbda
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x26c]
call fcn.10005250
push 0x102575b4
sub esp, 0x18
mov ecx, esp
push 0x1023c9a8
call fcn.10005170
call fcn.1002d3f0
add esp, 0x1c
push 0x102575b4
sub esp, 0x18
mov ecx, esp
push 0x1023c9d8
call fcn.10005170
call fcn.1002d3f0
add esp, 0x1c
cmp dword [0x1023c9b8], 0
je 0x1002cc44
push dword [ebp - 0x270]
lea eax, [ebp - 0x274]
mov ecx, 0x102575bc
push 0x1023c9a8
push 0
push eax
call fcn.10004e40
cmp dword [0x1023c9e8], 0
je 0x1002cc6b
push dword [ebp - 0x270]
lea eax, [ebp - 0x274]
mov ecx, 0x102575bc
push 0x1023c9d8
push 0
push eax
call fcn.10004e40
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x1002cca7
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002cc9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ccf4
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x1002cce3
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ccd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ccf4
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.101e6c40
int3