Function at 0x409c20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599e91
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xc64], ebx
push ecx
push str.CBaseInfoInitSettingsIni::ReadInitSettings
lea ecx, [ebp - 0xc58]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x409cae
test byte [ecx + 0x1c], 1
je 0x409cae
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5c6e18
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xe
call fcn.00401840
add esp, 0xc
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0xc20]
push esi
push eax
call fcn.00571c00
call fcn.0052ee40
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.0052ef30
push str.InitSettings.ini
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00574a48
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x400
lea eax, [ebp - 0xc20]
push eax
push esi
push esi
push str.InitSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x409ec7
lea edi, [ebp - 0xc20]
cmp word [ebp - 0xc20], si
je 0x409ec7
nop dword [eax]
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x409f38
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc60], eax
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x409f38
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc5c], eax
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
push edi
push str.InitSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test edi, edi
jne 0x409dbd
xor eax, eax
jmp 0x409dd1
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409dc2
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0xc60]
call fcn.00403bb0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409de7
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc5c]
call fcn.00403bb0
mov esi, dword [ebx + 4]
cmp dword [ebx + 8], esi
je 0x409e56
mov ecx, dword [ebp - 0xc60]
add ecx, 0xfffffff0
mov dword [ebp - 0xc6c], esi
call fcn.00403af0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
add esi, 4
mov ebx, dword [ebp - 0xc5c]
mov dword [ebp - 0xc68], esi
lea ecx, [ebx - 0x10]
call fcn.00403af0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0xc64]
add dword [eax + 4], 8
jmp 0x409e6b
lea eax, [ebp - 0xc60]
mov ecx, ebx
push eax
push esi
call fcn.0040a090
mov ebx, dword [ebp - 0xc5c]
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 4], 0
lea edx, [ebx - 0x10]
lea edi, [edi + eax*2]
or eax, 0xffffffff
add edi, 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409e99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc60]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409eb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [edi], 0
mov ebx, dword [ebp - 0xc64]
jne 0x409d40
mov byte [ebp - 0xc54], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x409f0f
test byte [ecx + 0x1c], 1
je 0x409f0f
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5c6e18
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xf
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0xc58]
call fcn.0040a570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013a0
int3