Function at 0x401040
Capabilities:
Get common file path
Get startup folder
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xaac
lea ecx, [ebp - 0x18]
xor ebx, ebx
mov dword [ecx - 4], esp
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x402a80
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
lea eax, [ebp - 0x8b0]
push 0x800
push ebx
push eax
call fcn.00472a40
add esp, 0xc
lea edi, [ebp - 0xab8]
push 0x208
push ebx
push edi
call fcn.00472a40
add esp, 0xc
push ebx
push 0x1c
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea esi, [ebp - 0xb0]
mov eax, 7
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
mov word [esi], 0
push edi
call fcn.0047f05d
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00402870
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x18]
mov edx, 7
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [eax + 8], edx
push esi
call fcn.004029c4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], 8
push 0x18
push str.2345Explorerconfig.ini
call fcn.004026a2
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x40111d
mov edx, dword [eax + 0x10]
cmp dword [eax + 0x14], 7
jbe 0x401110
mov eax, dword [eax]
lea ecx, [ebp - 0x44]
push edx
push eax
call fcn.00402870
lea ecx, [ebp - 0x44]
mov esi, 7
cmp dword [ebp - 0x30], esi
jbe 0x40112a
mov ecx, dword [ebp - 0x44]
push ecx
push 0x800
lea edi, [ebp - 0x8b0]
push edi
push 0x490094
push str.Version
push str.AppLoadInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ebx, [ebp - 0x68]
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], 0
mov word [ebx], 0
push edi
call fcn.0047f05d
add esp, 4
mov ecx, ebx
push eax
push edi
call fcn.00402870
lea eax, [ebp - 0x68]
mov dword [ebp - 0x10], 0xe
lea ecx, [ebp - 0x80]
push eax
push ecx
call fcn.00402f1c
add esp, 8
lea eax, [ebp - 0x80]
mov dword [ebp - 0x10], 0xf
lea ecx, [ebp - 0x2c]
push eax
call fcn.00404140
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x10], 0
call fcn.00402440
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], 1
call fcn.004024a4
cmp dword [ebp - 0x20], 0
je 0x401315
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x10], 9
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], 0
push 2
push 0x490094
call fcn.00402870
lea eax, [ebp - 0x8b0]
lea ecx, [ebp - 0x80]
push eax
call fcn.00401460
test eax, eax
je 0x40129f
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], 0xa
call fcn.00404218
test al, al
je 0x40129f
lea eax, [ebp - 0x98]
push eax
call fcn.00403180
add esp, 4
lea eax, [ebp - 0x98]
mov dword [ebp - 0x10], 0xb
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00402f1c
add esp, 8
mov eax, 0xc
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00404140
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], 0xd
lea ecx, [ebp - 0x2c]
push eax
call fcn.00404226
test eax, eax
lea ecx, [ebp - 0x50]
setns al
mov dword [ebp - 0x20], eax
call fcn.004040e0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], 2
call fcn.00402440
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x10], 3
call fcn.004024a4
jmp 0x4012a6
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x10], 4
call fcn.004024a4
cmp byte [ebp - 0x20], 0
je 0x401315
mov dword [ebp - 0x10], 9
lea ecx, [ebp - 0xb0]
push 0x1a
push str.2345ExplorerApplication_
call fcn.004026a2
lea edi, [ebp - 0x8b0]
mov esi, eax
push edi
call fcn.0047f05d
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004026a2
mov ecx, eax
push 1
push 0x4900f8
call fcn.004026a2
mov ecx, dword [ebp + 8]
cmp eax, ecx
je 0x401315
mov edx, dword [eax + 0x10]
cmp dword [eax + 0x14], 7
jbe 0x40130e
mov eax, dword [eax]
push edx
push eax
call fcn.00402870
lea ecx, [ebp - 0x2c]
call fcn.004040e0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], 5
call fcn.004024a4
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x10], 6
call fcn.004024a4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0xaac
pop esi
pop edi
pop ebx
pop ebp
ret