Function at 0x404090
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40e666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x128]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.SYSTEM.INI
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push 0x100
push ecx
push 0x414804
push str.shell
push str.boot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dl, byte [esp + 0x23]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.004021d0
lea eax, [esp + 0x28]
mov dword [esp + 0x234], 0
shr eax, 0x10
test ax, ax
je 0x404188
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00401460
add esp, 8
jmp 0x4041a5
lea eax, [esp + 0x28]
test eax, eax
je 0x4041a5
xor ecx, ecx
lea edx, [esp + 0x28]
mov cx, dx
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00401950
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x234], 1
test ebp, ebp
je 0x404215
cmp ebp, 0xffffffff
jge 0x4041ea
cmp ebp, 0xffffffff
jb 0x4041d5
mov eax, dword [0x40f158]
lea ecx, [esp + 0x10]
push eax
push 0xffffffffffffffff
call fcn.004016a0
jmp 0x4041e6
or ecx, 0xffffffff
push 0
sub ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.00401c50
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4041fd
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x404208
mov eax, 0x40f15c
jmp 0x404208
push 0
lea ecx, [esp + 0x14]
call fcn.00403200
push eax
call fcn.00409713
mov ebp, dword [esp + 0x1c]
add esp, 4
mov edi, str.WINSHELL.EXE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x24], esi
je 0x404294
test ebp, ebp
jbe 0x40428f
cmp esi, ebp
ja 0x40428f
movsx eax, byte [str.WINSHELL.EXE]
mov ebx, dword [esp + 0x14]
mov edx, 1
sub edx, esi
add ebp, edx
push ebp
push eax
push ebx
call fcn.00408ac0
add esp, 0xc
test eax, eax
je 0x40428f
jmp 0x40425d
mov esi, dword [esp + 0x24]
mov ecx, esi
mov edi, str.WINSHELL.EXE
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4042f7
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [str.WINSHELL.EXE]
push ebp
push eax
push ebx
call fcn.00408ac0
add esp, 0xc
test eax, eax
jne 0x404259
mov eax, dword [0x40f158]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x40f158]
pop edi
pop esi
pop ebp
cmp edx, eax
pop ebx
je 0x4042cc
cmp eax, 0xffffffff
je 0x4042cc
lea ecx, [esp + 0x118]
push ecx
push str.Explorer.exe
push str.shell
push str.boot
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x404309
mov al, byte [ecx - 1]
test al, al
je 0x4042ff
cmp al, 0xff
je 0x4042ff
dec al
mov byte [ecx - 1], al
xor eax, eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
add esp, 0x228
ret
mov ecx, dword [esp + 0x14]
sub eax, ecx
jmp 0x404298
dec ecx
push ecx
call fcn.00408750
add esp, 4
mov ecx, dword [esp + 0x21c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x228
ret