Function at 0x561620
Capabilities:
Get common file path
Get disk information
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73dbcc
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x857060]
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 edi, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x561680
mov bl, 1
jmp 0x561a25
cmp eax, 0x3c
jbe 0x56169a
push 1
push 0x7ec084
mov ecx, edi
call fcn.00426d40
xor bl, bl
jmp 0x561a25
lea edx, [ebp - 0x248]
mov ecx, esi
call fcn.00561390
test al, al
jne 0x5616c0
push 1
push 0x7eed14
mov ecx, edi
call fcn.00426d40
xor bl, bl
jmp 0x561a25
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x561725
mov dword [edi + 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x5616f1
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x14], 8
jb 0x5616fe
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
mov edx, 0x7ec088
mov ecx, 0x7ec08c
cmove ecx, edx
push 1
push ecx
mov ecx, edi
call fcn.00426d40
xor bl, bl
jmp 0x561a25
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 2
mov ebx, esi
cmp dword [esi + 0x14], 8
jb 0x561767
mov ebx, dword [esi]
lea eax, [ebp - 0x4b8]
push eax
push 0x77829c
push 1
push 0
push 0x78000c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x5618a8
mov eax, dword [ebp - 0x4b8]
lea edx, [ebp - 0x4b4]
push edx
push 0x77ffdc
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x5618a8
mov eax, dword [ebp - 0x4b4]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x5618a8
mov eax, dword [ebp - 0x4b8]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
js 0x5618a8
mov eax, dword [ebp - 0x4b8]
lea edx, [ebp - 0x4b0]
push 1
push edx
push 0x104
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x5618a8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x561810
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00426d40
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.00561390
test al, al
je 0x5618a8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x5618a8
mov dword [edi + 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x561878
mov eax, dword [edi]
xor ecx, ecx
push 1
mov word [eax], cx
mov ecx, edi
push 0x7ec08c
call fcn.00426d40
lea ecx, [ebp - 0x230]
call fcn.00426ce0
lea ecx, [ebp - 0x260]
call fcn.00426ce0
xor bl, bl
jmp 0x561a25
lea ecx, [ebp - 0x230]
call fcn.00426ce0
lea ecx, [ebp - 0x260]
call fcn.00426ce0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push eax
push 0x26
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x561a09
lea eax, [ebp - 0x4b4]
mov dword [ebp - 0x4b4], 0
push eax
lea eax, [ebp - 0x218]
push 0x79a7b0
push eax
call fcn.0070569f
add esp, 0xc
test eax, eax
je 0x561a09
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x561930
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00426d40
push 1
push 0x79a7b0
lea ecx, [ebp - 0x230]
call fcn.0044a2e0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x56196e
mov ecx, dword [esi]
cmp dword [ebp - 0x21c], 8
lea ebx, [ebp - 0x230]
mov eax, dword [esi + 0x10]
cmovae ebx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x220]
cmp edx, eax
jne 0x5619ab
test edx, edx
je 0x5619e8
sub ebx, ecx
mov ax, word [ecx + ebx]
cmp ax, word [ecx]
jne 0x5619a8
add ecx, 2
sub edx, 1
jne 0x561995
jmp 0x5619e8
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x5619b3
mov esi, dword [esi]
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
mov ecx, dword [ebp - 0x238]
cmovae edx, dword [ebp - 0x248]
cmp ecx, eax
jne 0x561a05
test ecx, ecx
je 0x5619e8
sub edx, esi
mov ax, word [esi + edx]
cmp ax, word [esi]
jne 0x561a05
add esi, 2
sub ecx, 1
jne 0x5619d7
mov dword [edi + 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x5619f9
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov eax, 0x7a15bc
jmp 0x561a0e
mov bl, 1
jmp 0x561a1a
mov eax, 0x7eed14
push 1
push eax
mov ecx, edi
call fcn.00426d40
xor bl, bl
lea ecx, [ebp - 0x230]
call fcn.00426ce0
lea ecx, [ebp - 0x248]
call fcn.00426ce0
mov al, bl
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.006d0965
mov esp, ebp
pop ebp
ret