Function at 0x4273a0
Capabilities:
Read .ini file
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4b66a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
call fcn.0047b116
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4273e7
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x20], 1
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x427464
push 0x5c
push ecx
call fcn.00492b3a
add esp, 8
test eax, eax
je 0x427464
sub eax, dword [esp + 0x28]
sar eax, 1
cmp eax, 0xffffffff
je 0x427464
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call fcn.00404b70
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00401e10
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x427464
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x427594
mov eax, dword [0x4f4378]
add eax, 0xfffffff0
push eax
call fcn.00401da0
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x20], 3
call fcn.0047b116
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4274a9
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x20], 4
mov eax, dword [esi - 8]
mov edi, dword [0x4f4380]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4274ea
push 0x104
lea ecx, [esp + 0x14]
call fcn.004020a0
mov esi, dword [esp + 0x10]
push edi
push 0x104
push esi
push 0x4c6054
push str.LastDir
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00491b18
add esp, 8
test eax, eax
jl 0x427612
cmp eax, dword [esi - 8]
jg 0x427612
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x427540
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.00401e10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.00401e10
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42756f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x4275ac
push 0x4f4378
lea ecx, [esp + 0x10]
call fcn.00401e10
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4275d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427600
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
push 0x80070057
call fcn.00402120
int3