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

Disassembly:
push 0x340
mov eax, 0x43bda0
call fcn.0042408c
mov esi, ecx
mov dword [ebp - 0x344], esi
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x340], ebx
call fcn.004102c4
push edi
push 0x1a
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x330]
call fcn.0041d7da
push 7
pop ecx
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x298], edi
mov word [ebp - 0x2a8], ax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x250], edi
mov word [ebp - 0x260], ax
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x280], edi
mov word [ebp - 0x290], ax
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], edi
mov word [ebp - 0x248], ax
mov ecx, dword [esi + 0xa8]
mov eax, dword [esi + 0xac]
sub eax, ecx
cdq
mov dword [ebp - 0x33c], 0x4c
idiv dword [ebp - 0x33c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x338], edi
test eax, eax
je 0x41099c
mov dword [ebp - 0x348], 0x2f
mov dword [ebp - 0x334], edi
lea eax, [edi + ecx]
cmp dword [eax + 0x14], 0x10
jb 0x4106ab
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00419eaa
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.0040f87c
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0041157d
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x248]
call fcn.00411f90
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.0041208d
push eax
lea ecx, [ebp - 0x290]
call fcn.0040f87c
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0041157d
mov eax, dword [esi + 0xa8]
add eax, 0x18
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x41072f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00419eaa
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.0040f87c
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x230]
call fcn.0041157d
xor eax, eax
push str._ccid_
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], edi
mov word [ebp - 0x278], ax
call fcn.00423fa4
pop ecx
push eax
push str._ccid_
lea ecx, [ebp - 0x278]
call fcn.00411854
push esi
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00412015
push edi
push 1
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 4
call fcn.0041157d
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
cmovae eax, dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x330]
push str._s_s
push eax
call fcn.0041d9c9
push 0x44
call fcn.00421977
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x34c], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x410871
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040f20d
or ebx, 1
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 7
mov dword [ebp - 0x340], ebx
call fcn.0041d83c
push eax
lea ecx, [ebp - 0x278]
call fcn.0040f20d
push 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x278]
or ebx, 2
push eax
mov ecx, edi
mov dword [ebp - 4], 8
mov dword [ebp - 0x340], ebx
call fcn.00417250
mov edi, eax
jmp 0x410873
xor edi, edi
test bl, 2
je 0x41088a
push 0
push 1
lea ecx, [ebp - 0x278]
and ebx, 0xfffffffd
call fcn.0041157d
mov dword [ebp - 4], 4
test bl, 1
je 0x4108a8
push 0
push 1
lea ecx, [ebp - 0x230]
and ebx, 0xfffffffe
call fcn.0041157d
mov ecx, edi
mov byte [edi + 0xd], 1
call fcn.0041104d
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xa8]
add eax, 0x30
add eax, dword [ebp - 0x334]
cmp dword [eax + 0x14], 0x10
jb 0x4108d5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00419eaa
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0040f87c
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0041157d
mov ecx, dword [esi + 0xa8]
mov edx, dword [ebp - 0x334]
cmp dword [ebp - 0x294], 8
movzx eax, byte [edx + ecx + 0x4a]
push eax
movzx eax, byte [edx + ecx + 0x49]
push eax
movzx eax, byte [edx + ecx + 0x48]
lea edi, [ebp - 0x2a8]
cmovae edi, dword [ebp - 0x2a8]
cmp dword [ebp - 0x24c], 8
lea esi, [ebp - 0x260]
cmovae esi, dword [ebp - 0x260]
push eax
lea ecx, [ebp - 0x330]
call fcn.0041d83c
push eax
push edi
push esi
call fcn.0041a1d0
mov esi, dword [ebp - 0x344]
mov edi, dword [ebp - 0x334]
mov ecx, dword [esi + 0xa8]
mov eax, dword [esi + 0xac]
sub eax, ecx
cdq
idiv dword [ebp - 0x33c]
add edi, dword [ebp - 0x33c]
add esp, 0x18
inc dword [ebp - 0x338]
mov dword [ebp - 0x334], edi
cmp dword [ebp - 0x338], eax
jb 0x4106a0
xor edi, edi
call fcn.0041a4e8
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x248]
call fcn.0041157d
push edi
push ebx
lea ecx, [ebp - 0x290]
call fcn.0041157d
push edi
push ebx
lea ecx, [ebp - 0x260]
call fcn.0041157d
push edi
push ebx
lea ecx, [ebp - 0x2a8]
call fcn.0041157d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x330]
call fcn.0041d7ee
call fcn.0042403b
ret