Function at 0x40a630
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1170
call fcn.0043ae00
mov al, byte [0x473aa0]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x78], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x79]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1184]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..ini
or ecx, 0xffffffff
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]
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
and ecx, 3
push 0
push str.LineIndex
rep movsb byte es:[edi], byte [esi]
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, dword [esp + 0x118c]
mov ebx, dword [esp + 0x1190]
mov edi, eax
lea eax, [edi + ebp]
cmp eax, ebx
jle 0x40a8e6
cmp ebx, 0xffffffff
je 0x40a8e6
push ebx
lea ecx, [esp + 0x18]
push 0x46e150
push ecx
call fcn.0043afc4
add esp, 0xc
lea edx, [esp + 0x78]
lea eax, [esp + 0x14]
push edx
push eax
push str.LineIndex
push str.System
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp ebp, ebx
jle 0x40a7b5
mov esi, dword [esp + 0x1188]
sub ebp, ebx
xor edi, edi
test ebp, ebp
jle 0x40a747
push 0x46e38c
push esi
call fcn.0043ad80
mov esi, eax
add esp, 8
test esi, esi
je 0x40a97a
add esi, 2
inc edi
cmp edi, ebp
jl 0x40a727
test esi, esi
je 0x40a97a
mov ecx, dword [esp + 0x1184]
push 0x46e194
push ecx
call fcn.0043bceb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40a97a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
push esi
call fcn.0043bb81
mov edi, str.______Logs_Overflow_________r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
push str.______Logs_Overflow_________r_n
call fcn.0043bb81
push ebx
call fcn.0043bb04
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1170
ret
mov edx, dword [esp + 0x1184]
push 0x46e3a8
push edx
call fcn.0043bceb
mov esi, eax
add esp, 8
test esi, esi
je 0x40a97a
sub edi, ebx
mov dword [esp + 0x10], 0
add edi, ebp
test edi, edi
jle 0x40a80e
mov bl, 0x10
test byte [esi + 0xc], bl
jne 0x40a80e
push esi
lea eax, [esp + 0x184]
push 0x1000
push eax
call fcn.0043be43
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x40a7e6
push esi
call fcn.0043c49d
push 2
push 0
push esi
mov ebx, eax
call fcn.0043c3e4
push esi
call fcn.0043c49d
mov edi, eax
add esp, 0x14
sub edi, ebx
test edi, edi
jle 0x40a8d2
push 0
push ebx
push esi
call fcn.0043c3e4
push edi
call fcn.00451344
push esi
mov ebx, eax
push 1
push edi
push ebx
call fcn.0043c2cd
push esi
call fcn.0043bb04
mov ecx, dword [esp + 0x11a8]
push 0x46e194
push ecx
call fcn.0043bceb
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x40a8be
push esi
push 1
push edi
push ebx
call fcn.0043bb81
mov edx, dword [esp + 0x1198]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
push 1
push ecx
push edx
call fcn.0043bb81
mov edi, str.______Logs_Overflow_________r_n
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
push str.______Logs_Overflow_________r_n
call fcn.0043bb81
push esi
call fcn.0043bb04
add esp, 0x34
push ebx
call fcn.0045136d
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1170
ret
push esi
call fcn.0043bb04
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1170
ret
push eax
lea edx, [esp + 0x18]
push 0x46e150
push edx
call fcn.0043afc4
add esp, 0xc
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.LineIndex
push str.System
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x1184]
push 0x46f128
push edi
call fcn.0043bceb
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a94a
push 0x46e194
push edi
call fcn.0043bceb
mov esi, eax
add esp, 8
test esi, esi
je 0x40a97a
push 2
push 0
push esi
call fcn.0043c3e4
mov edx, dword [esp + 0x1194]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
push 1
push ecx
push edx
call fcn.0043bb81
push esi
call fcn.0043bb04
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1170
ret