Function at 0x406885
Capabilities:
Read .ini file

Disassembly:
push 0x224
mov eax, 0x4a1f2e
call fcn.00481da3
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0x4acd34
xor esi, esi
push ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x406d0c
mov ebx, 0x9a0
push ebx
call fcn.0045d815
cmp eax, esi
pop ecx
je 0x4068df
mov esi, eax
call fcn.0040644d
mov edi, eax
xor esi, esi
jmp 0x4068e1
xor edi, edi
cmp edi, esi
je 0x406d1f
push dword [ebp - 0x224]
lea eax, [edi + 4]
push eax
call fcn.0040466f
pop ecx
pop ecx
push dword [ebp - 0x22c]
push dword [ebp + 0x10]
call fcn.00406f1f
test eax, eax
je 0x406d18
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x31c], eax
lea eax, [edi + 0xcc]
push str.signs.ini
push eax
call fcn.0047bbb4
test eax, eax
pop ecx
pop ecx
jne 0x406af2
lea eax, [edi + 0x320]
push eax
mov ecx, 0x4efe84
call fcn.004014c5
mov ecx, edi
call fcn.004072e9
cmp eax, esi
je 0x406ae6
cmp dword [ebp + 8], esi
je 0x40699b
inc dword [0x4efec0]
push ebx
call fcn.0045d815
pop ecx
mov dword [ebp - 0x22c], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40697c
push edi
push eax
call fcn.00406d33
jmp 0x40697e
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x406d18
mov ecx, dword [0x4efebc]
cmp ecx, esi
je 0x406996
mov dword [eax], ecx
mov dword [0x4efebc], eax
xor ebx, ebx
inc ebx
mov dword [0x4efe80], ebx
call dword [0x4d1acc]
push 0x103
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21f]
push esi
push eax
mov byte [ebp - 0x220], 0
call fcn.0047e7d0
add esp, 0xc
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x224]
call fcn.0040161b
lea eax, [edi + 0x528]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], ebx
call fcn.004014c5
lea eax, [edi + 0xcc]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401250
mov ecx, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.004121c7
test eax, eax
je 0x406abe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
mov ebx, 0x3fffffff
cmp esi, ebx
jle 0x406a3a
xor eax, eax
jmp 0x406a58
lea eax, [esi + esi]
call fcn.004840d0
mov eax, esp
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
push esi
push ecx
push eax
call fcn.00408bae
push eax
call fcn.004129ee
test eax, eax
pop ecx
lea eax, [ebp - 0x220]
push eax
je 0x406ab6
call fcn.00435700
add esp, 4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, ebx
jle 0x406a8a
xor eax, eax
jmp 0x406aa8
lea eax, [esi + esi]
call fcn.004840d0
mov eax, esp
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
push esi
push ecx
push eax
call fcn.00408bae
push eax
lea ecx, [edi + 0x994]
call fcn.004014c5
jmp 0x406abe
call fcn.00435700
add esp, 4
mov esi, dword [0x4efeb4]
test esi, esi
je 0x406acd
call fcn.00405322
mov dword [0x4efeb4], edi
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00401325
jmp 0x406d0c
mov esi, edi
call fcn.00405322
jmp 0x406d0c
lea eax, [edi + 0xcc]
push str.FileList.ini
push eax
call fcn.0047bbb4
test eax, eax
pop ecx
pop ecx
mov ecx, edi
jne 0x406ca5
call fcn.004072e9
cmp eax, esi
je 0x406ae6
cmp dword [ebp + 8], esi
je 0x406b63
inc dword [0x4efec0]
push ebx
call fcn.0045d815
pop ecx
mov dword [ebp - 0x22c], eax
cmp eax, esi
mov dword [ebp - 4], 2
je 0x406b44
push edi
push eax
call fcn.00406d33
jmp 0x406b46
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x406d18
mov ecx, dword [0x4efebc]
cmp ecx, esi
je 0x406b5e
mov dword [eax], ecx
mov dword [0x4efebc], eax
mov dword [0x4efe80], 1
call dword [0x4d1acc]
push 0x103
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x117]
push esi
push eax
mov byte [ebp - 0x118], 0
call fcn.0047e7d0
add esp, 0xc
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x224]
call fcn.0040161b
lea eax, [edi + 0x528]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 3
call fcn.004014c5
lea eax, [edi + 0xcc]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401250
mov ecx, dword [ebp - 0x224]
lea edx, [ebp - 0x118]
call fcn.004121c7
test eax, eax
je 0x406c8b
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
mov ebx, 0x3fffffff
cmp esi, ebx
jle 0x406c07
xor eax, eax
jmp 0x406c25
lea eax, [esi + esi]
call fcn.004840d0
mov eax, esp
push dword [ebp - 0x228]
lea ecx, [ebp - 0x118]
push esi
push ecx
push eax
call fcn.00408bae
push eax
call fcn.004129ee
test eax, eax
pop ecx
lea eax, [ebp - 0x118]
push eax
je 0x406c83
call fcn.00435700
add esp, 4
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, ebx
jle 0x406c57
xor eax, eax
jmp 0x406c75
lea eax, [esi + esi]
call fcn.004840d0
mov eax, esp
push dword [ebp - 0x228]
lea ecx, [ebp - 0x118]
push esi
push ecx
push eax
call fcn.00408bae
push eax
lea ecx, [edi + 0x994]
call fcn.004014c5
jmp 0x406c8b
call fcn.00435700
add esp, 4
mov esi, dword [0x4efeb8]
test esi, esi
je 0x406c9a
call fcn.00405322
mov dword [0x4efeb8], edi
jmp 0x406ad3
call fcn.004072e9
cmp eax, esi
je 0x406cfb
cmp dword [ebp + 8], esi
je 0x406cf1
inc dword [0x4efec0]
push ebx
call fcn.0045d815
pop ecx
mov dword [ebp - 0x22c], eax
cmp eax, esi
mov dword [ebp - 4], 4
je 0x406cda
push edi
push eax
call fcn.00406d33
jmp 0x406cdc
xor eax, eax
cmp eax, esi
je 0x406d18
mov ecx, dword [0x4efebc]
cmp ecx, esi
je 0x406cec
mov dword [eax], ecx
mov dword [0x4efebc], eax
mov dword [0x4efe80], 1
mov eax, dword [0x4efe78]
cmp eax, esi
je 0x406d06
mov dword [edi], eax
mov dword [0x4efe78], edi
mov dword [ebp - 0x228], 1
jmp 0x406d1f
mov esi, edi
call fcn.00405322
mov eax, dword [ebp - 0x228]
lea esp, [ebp - 0x240]
call fcn.00481e26
ret 0x10