Function at 0x4084f0
Capabilities:
Get common file path
Read .ini file
Set current directory

Disassembly:
mov eax, 0x241c
call fcn.004126b0
lea eax, [esp + 0x218]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x14], esi
mov byte [esp + 0x224], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x242c]
mov eax, dword [esp + 0x2428]
push ecx
lea edx, [esp + 0x424]
push 0x2000
push edx
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov al, byte [esp + 0x420]
lea esi, [esp + 0x420]
test al, al
mov dword [esp + 0x10], esi
je 0x408816
push edi
push ebp
mov ebp, dword [esp + 0x2438]
push ebx
lea ecx, [esp + 0x32c]
lea edx, [esp + 0x128]
push ecx
push edx
push esi
call fcn.00408830
add esp, 0xc
test al, al
je 0x4087f4
mov al, byte [esp + 0x32c]
mov byte [esp + 0x13], 1
test al, al
je 0x4085a0
cmp al, 0x4e
je 0x4085a0
cmp al, 0x6e
jne 0x4085a5
mov byte [esp + 0x13], 0
lea eax, [esp + 0x128]
xor bl, bl
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x128]
cmp al, 0x24
mov byte [esp + 0x24], 0
jne 0x40865d
cmp byte [esp + 0x129], 0x28
jne 0x40865d
lea edx, [esp + 0x12a]
lea ecx, [esp + 0x12a]
push 0x29
push edx
mov dword [esp + 0x28], ecx
call fcn.00411730
mov edi, eax
add esp, 8
test edi, edi
je 0x4085fa
mov byte [edi], bl
inc edi
call dword [sym.imp.NTDIOED.dll_DIOEDAOpenCurrentContext]
mov esi, eax
test esi, esi
je 0x40862c
lea eax, [esp + 0x24]
push 0x104
lea ecx, [esp + 0x12e]
push eax
push ecx
push esi
call dword [sym.imp.NTDIOED.dll_DIOEDACopyContextString]
add esp, 0x10
push esi
call dword [sym.imp.NTDIOED.dll_DIOEDACloseContext]
add esp, 4
test edi, edi
je 0x408659
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov bl, 1
jmp 0x408685
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2438]
push esi
call fcn.00406dc0
add esp, 4
test eax, eax
jne 0x4086a2
mov byte [esp + 0x13], al
jmp 0x40876c
lea ecx, [esp + 0x24]
push 0x2aa2
push ecx
call fcn.00408930
add esp, 8
test eax, eax
jge 0x4086c7
test ebp, ebp
mov byte [esp + 0x13], 0
je 0x40876c
jmp 0x4086f6
cmp eax, 1
jne 0x4086e3
lea edx, [esp + 0x24]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00406e30
add esp, 8
jmp 0x40876c
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40875c
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x408728
mov edx, dword [esp + 0x2434]
push esi
push edx
push str.The__s_section_of__s_has_problems._n
push ebp
call fcn.00410e40
add esp, 0x10
push str.Ini_Editor
push str.Please_run_the__s_to_correct_them._n
push ebp
call fcn.00410e40
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push str._tInvalid_path__s_n
push ebp
call fcn.00410e40
add esp, 0xc
test bl, bl
je 0x408752
mov ecx, dword [esp + 0x20]
push ecx
push str._t_tCheck_the_macro____s_._n
push ebp
call fcn.00410e40
add esp, 0xc
mov dword [esp + 0x18], 1
jmp 0x40876c
lea edx, [esp + 0x24]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov al, byte [esp + 0x24]
test al, al
je 0x4087f0
mov edi, dword [esp + 0x2430]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
jle 0x4087b2
mov edx, dword [edi]
lea ecx, [esp + 0x24]
push ecx
mov eax, dword [edx + esi*8 + 4]
push eax
call fcn.00419770
add esp, 8
test eax, eax
je 0x4087b2
mov eax, dword [edi + 4]
inc esi
cmp esi, eax
jl 0x408792
cmp esi, dword [edi + 4]
jge 0x4087ce
push 1
push esi
mov ecx, edi
call fcn.0040f3c0
mov eax, dword [esp + 0x14]
cmp esi, eax
jge 0x4087ce
dec eax
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x13]
test al, al
je 0x4087f0
mov ecx, dword [esp + 0x14]
push 1
mov eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x28]
push ecx
push eax
mov ecx, edi
call fcn.0040f300
mov esi, dword [esp + 0x1c]
mov dl, byte [esi]
inc esi
test dl, dl
mov dword [esp + 0x1c], esi
je 0x40880a
mov al, byte [esi]
inc esi
test al, al
jne 0x4087ff
mov dword [esp + 0x1c], esi
cmp byte [esi], 0
jne 0x408567
pop ebx
pop ebp
pop edi
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x241c
ret