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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e6567
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x102f8384]
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 esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x224], 0
call fcn.10004e60
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [edx - 1]
mov dword [ebp - 0x224], 1
cmp eax, 7
ja 0x1001c71e
cmp edx, 1
jne 0x1001c659
push 0
mov eax, 5
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001c773
cmp edx, 2
jne 0x1001c67a
push 0
mov eax, 6
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001c773
cmp edx, 3
jne 0x1001c69b
push 0
mov eax, 0x10
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001c773
cmp edx, 4
jne 0x1001c6bc
push 0
mov eax, 0x14
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001c773
cmp edx, 5
jne 0x1001c6dd
push 0
mov eax, 0xb
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001c773
cmp edx, 6
jne 0x1001c6fb
push 0
mov eax, 2
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001c773
mov ecx, 7
mov eax, 0x1a
cmp edx, ecx
push 0
cmove eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001c773
cmp edx, 9
jne 0x1001c737
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1001c76b
cmp edx, 0xa
jne 0x1001c750
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001c76b
cmp edx, 0xb
jne 0x1001c9ce
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
test eax, eax
je 0x1001c9ce
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1001c78a
cmp dword [esi + 0x24], eax
je 0x1001c794
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x218]
cmp ecx, eax
je 0x1001c7da
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1001c7ac
mov eax, dword [esi + 0x10]
push ecx
lea ecx, [esi + 0x10]
call dword [eax + 0xc]
cmp word [ebp - 0x218], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
je 0x1001c7da
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x10]
call fcn.10027920
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1001c7f7
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001c7e6
sub ecx, edx
sar ecx, 1
jmp 0x1001c805
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1001c8ca
shr ecx, 1
dec ecx
test ecx, ecx
jle 0x1001c82b
test ebx, ebx
je 0x1001c811
mov eax, ebx
jmp 0x1001c81f
cmp dword [esi + 0x24], 0
mov eax, 0x102e61a8
je 0x1001c81f
mov eax, dword [esi + 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1001c9ce
test ebx, ebx
je 0x1001c8ca
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001c840
sub ecx, edx
mov dword [esi + 0x24], 0
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x220], eax
cmp dword [esi + 0x20], eax
jl 0x1001c8a6
cmp eax, 2
jne 0x1001c87c
mov ecx, dword [esi + 0x1c]
mov ax, word [ebx]
mov word [ecx], ax
add dword [esi + 0x24], 2
jmp 0x1001c8c3
cmp eax, 4
jne 0x1001c88e
mov ecx, dword [esi + 0x1c]
mov eax, dword [ebx]
mov dword [ecx], eax
add dword [esi + 0x24], 4
jmp 0x1001c8c3
cmp eax, 8
jne 0x1001c8a6
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x24], 8
jmp 0x1001c8c3
test eax, eax
jle 0x1001c8c3
push eax
lea ecx, [esi + 0x10]
call fcn.10027830
push dword [ebp - 0x220]
push ebx
push eax
call fcn.101c0150
add esp, 0xc
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0x24]
cmp ebx, 2
jb 0x1001c8e3
mov eax, dword [esi + 0x1c]
cmp word [eax + ebx - 2], 0
jne 0x1001c8e3
add ebx, 0xfffffffe
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x220], eax
sub eax, ebx
mov dword [ebp - 0x22c], 0x5c
cmp eax, 4
jl 0x1001c912
mov eax, dword [ebp - 0x22c]
mov dword [ebx + ecx], eax
add dword [esi + 0x24], 4
jmp 0x1001c9ce
lea eax, [ebx + 4]
cmp eax, ebx
je 0x1001c9c5
test eax, eax
jne 0x1001c948
test ecx, ecx
je 0x1001c92f
mov eax, dword [esi + 0x10]
push ecx
lea ecx, [esi + 0x10]
call dword [eax + 0xc]
mov dword [esi + 0x1c], 0
xor ecx, ecx
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
jmp 0x1001c9c5
test ecx, ecx
jne 0x1001c959
push eax
lea ecx, [esi + 0x10]
call fcn.100277d0
mov ecx, eax
jmp 0x1001c9c5
mov edx, dword [esi + 0x28]
test edx, edx
mov dword [ebp - 0x21c], 0x40
cmovle edx, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], edx
cmp dword [esi + 0x20], eax
jl 0x1001c988
sub dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], edx
jle 0x1001c9c2
cdq
idiv dword [ebp - 0x21c]
lea eax, [ebx + 4]
sub dword [ebp - 0x21c], edx
mov edx, dword [ebp - 0x21c]
add edx, eax
mov eax, dword [esi + 0x10]
push edx
push ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x21c], edx
call dword [eax + 8]
mov ecx, eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x20], eax
lea eax, [ebx + 4]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x22c]
mov dword [ecx + ebx], eax
mov eax, esi
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.101bdc82
mov esp, ebp
pop ebp
ret