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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b227
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5b7018]
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, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x224], 0
call fcn.00408010
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 0x41bdae
cmp edx, 1
jne 0x41bce9
push 0
mov eax, 5
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x41be03
cmp edx, 2
jne 0x41bd0a
push 0
mov eax, 6
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x41be03
cmp edx, 3
jne 0x41bd2b
push 0
mov eax, 0x10
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x41be03
cmp edx, 4
jne 0x41bd4c
push 0
mov eax, 0x14
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x41be03
cmp edx, 5
jne 0x41bd6d
push 0
mov eax, 0xb
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x41be03
cmp edx, 6
jne 0x41bd8b
push 0
mov eax, 2
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x41be03
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 0x41be03
cmp edx, 9
jne 0x41bdc7
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x41bdfb
cmp edx, 0xa
jne 0x41bde0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x41bdfb
cmp edx, 0xb
jne 0x41c043
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 0x41c043
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x41be23
mov eax, dword [edi + 0x10]
push ecx
lea ecx, [edi + 0x10]
call dword [eax + 0xc]
cmp word [ebp - 0x218], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
je 0x41be51
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x10]
call fcn.004292a0
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x41be71
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41be60
sub ecx, edx
sar ecx, 1
jmp 0x41be7f
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x41bf3c
shr ecx, 1
dec ecx
test ecx, ecx
jle 0x41bea5
test ebx, ebx
je 0x41be8b
mov eax, ebx
jmp 0x41be99
cmp dword [edi + 0x24], 0
mov eax, 0x5a6674
je 0x41be99
mov eax, dword [edi + 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x41c043
test ebx, ebx
je 0x41bf3c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41beb2
sub ecx, edx
mov dword [edi + 0x24], 0
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x220], eax
cmp dword [edi + 0x20], eax
jl 0x41bf18
cmp eax, 2
jne 0x41beee
mov ecx, dword [edi + 0x1c]
mov ax, word [ebx]
mov word [ecx], ax
add dword [edi + 0x24], 2
jmp 0x41bf35
cmp eax, 4
jne 0x41bf00
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebx]
mov dword [ecx], eax
add dword [edi + 0x24], 4
jmp 0x41bf35
cmp eax, 8
jne 0x41bf18
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [edi + 0x24], 8
jmp 0x41bf35
test eax, eax
jle 0x41bf35
push eax
lea ecx, [edi + 0x10]
call fcn.004291f0
push dword [ebp - 0x220]
push ebx
push eax
call fcn.004301e0
add esp, 0xc
mov dword [edi + 0xc], 0
mov ebx, dword [edi + 0x24]
cmp ebx, 2
jb 0x41bf55
mov eax, dword [edi + 0x1c]
cmp word [eax + ebx - 2], 0
jne 0x41bf55
add ebx, 0xfffffffe
mov dword [edi + 0x24], ebx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x220], eax
sub eax, ebx
mov dword [ebp - 0x22c], 0x5c
cmp eax, 4
jl 0x41bf84
mov eax, dword [ebp - 0x22c]
mov dword [ebx + ecx], eax
add dword [edi + 0x24], 4
jmp 0x41c043
lea eax, [ebx + 4]
cmp eax, ebx
je 0x41c03a
test eax, eax
jne 0x41bfbd
test ecx, ecx
je 0x41bfa1
mov eax, dword [edi + 0x10]
push ecx
lea ecx, [edi + 0x10]
call dword [eax + 0xc]
mov dword [edi + 0x1c], 0
xor ecx, ecx
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
jmp 0x41c03a
test ecx, ecx
jne 0x41bfce
push eax
lea ecx, [edi + 0x10]
call fcn.00429190
mov ecx, eax
jmp 0x41c03a
mov edx, dword [edi + 0x28]
test edx, edx
mov dword [ebp - 0x21c], 0x40
cmovle edx, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], edx
cmp dword [edi + 0x20], eax
jl 0x41bffd
sub dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], edx
jle 0x41c037
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 [edi + 0x10]
push edx
push ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 0x21c], edx
call dword [eax + 8]
mov ecx, eax
mov eax, dword [ebp - 0x21c]
mov dword [edi + 0x20], eax
lea eax, [ebx + 4]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x22c]
mov dword [ecx + ebx], eax
mov eax, edi
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.0042e9e7
mov esp, ebp
pop ebp
ret