Function at 0x40bc8b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513126
mov eax, dword fs:[0]
push eax
mov eax, 0x10dc
call fcn.004032c0
mov eax, dword [section..data]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
lea esi, [ebx + 0x20]
mov dword [ebp - 0x10dc], 0
push edi
mov ecx, esi
mov dword [ebp - 0x10d8], eax
mov dword [ebp - 0x10dc], esi
call fcn.00407db7
mov dword [ebp - 0x10e8], eax
cmp eax, dword [esi + 4]
je 0x40bd1a
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40bcff
mov eax, dword [eax]
push ecx
mov ecx, dword [edi + 0x10]
push eax
push ecx
push 0
mov ecx, edi
call fcn.00407955
test eax, eax
js 0x40bd1a
lea eax, [ebp - 0x10e8]
jmp 0x40bd29
mov edx, dword [esi + 4]
mov dword [ebp - 0x10e4], edx
lea eax, [ebp - 0x10e4]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x24]
je 0x40bd5e
mov esi, dword [ebp - 0x10d8]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add eax, 0x28
mov word [esi], cx
push eax
mov ecx, esi
call fcn.00404e84
mov eax, esi
jmp 0x40c060
push 1
push 0
push 0x5240d8
mov ecx, edi
call fcn.0040a7a6
mov esi, eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], eax
mov word [ebp - 0x102c], dx
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
je 0x40bf95
push esi
push eax
lea eax, [ebp - 0x1064]
push eax
mov ecx, edi
call fcn.00404e51
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [ebp - 0x1048]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00404e51
xor edx, edx
push 0xffe
push edx
lea eax, [ebp - 0x100e]
push eax
mov byte [ebp - 4], 2
mov word [ebp - 0x1010], dx
call fcn.00402e70
lea eax, [ebx + 4]
mov esi, 8
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x40bdee
mov eax, dword [eax]
mov edx, dword [ebp - 0x1048]
cmp dword [ebp - 0x1034], esi
jae 0x40be02
lea edx, [ebp - 0x1048]
mov ecx, dword [ebp - 0x1064]
cmp dword [ebp - 0x1050], esi
jae 0x40be16
lea ecx, [ebp - 0x1064]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x523b80
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be3b
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x102c]
call fcn.0040392d
cmp dword [ebp - 0x101c], 0
jne 0x40bf44
lea edx, [ebp - 0x1064]
push edx
lea eax, [ebp - 0x10b8]
push 0x520f74
push eax
call fcn.0040c07e
push 0x520f74
push eax
lea ecx, [ebp - 0x109c]
push ecx
mov byte [ebp - 4], 3
call fcn.00405b23
lea edx, [ebp - 0x1048]
push edx
push eax
lea eax, [ebp - 0x1080]
push eax
mov byte [ebp - 4], 4
call fcn.0040c156
add esp, 0x24
lea ecx, [ebp - 0x102c]
push ecx
mov ecx, dword [ebx]
push eax
mov byte [ebp - 4], 5
call fcn.0040c197
cmp dword [ebp - 0x106c], esi
jb 0x40bedd
mov edx, dword [ebp - 0x1080]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x106c], ebx
mov dword [ebp - 0x1070], 0
mov word [ebp - 0x1080], ax
cmp dword [ebp - 0x1088], esi
jb 0x40bf12
mov ecx, dword [ebp - 0x109c]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0x1088], ebx
mov dword [ebp - 0x108c], 0
mov word [ebp - 0x109c], dx
cmp dword [ebp - 0x10a4], esi
jb 0x40bf49
mov eax, dword [ebp - 0x10b8]
push eax
call fcn.00404f7d
add esp, 4
jmp 0x40bf49
mov ebx, 7
cmp dword [ebp - 0x1034], esi
jb 0x40bf60
mov ecx, dword [ebp - 0x1048]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0x1034], ebx
mov dword [ebp - 0x1038], 0
mov word [ebp - 0x1048], dx
mov byte [ebp - 4], dl
cmp dword [ebp - 0x1050], esi
jb 0x40bf9a
mov eax, dword [ebp - 0x1064]
push eax
call fcn.00404f7d
add esp, 4
jmp 0x40bf9a
mov esi, 8
lea ecx, [ebp - 0x102c]
push ecx
lea edx, [ebp - 0x10d4]
push edi
push edx
call fcn.0040d552
add esp, 0xc
mov edi, dword [ebp - 0x10dc]
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00408d2a
push eax
lea eax, [ebp - 0x10e0]
push eax
mov ecx, edi
call fcn.00408e25
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10a4], esi
jb 0x40bfef
mov ecx, dword [ebp - 0x10b8]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x10a4], ebx
mov dword [ebp - 0x10a8], 0
mov word [ebp - 0x10b8], dx
cmp dword [ebp - 0x10c0], esi
jb 0x40c024
mov eax, dword [ebp - 0x10d4]
push eax
call fcn.00404f7d
add esp, 4
mov edi, dword [ebp - 0x10d8]
xor ecx, ecx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
lea edx, [ebp - 0x102c]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00403fa0
cmp dword [ebp - 0x1018], esi
jb 0x40c05e
mov eax, dword [ebp - 0x102c]
push eax
call fcn.00404f7d
add esp, 4
mov eax, edi
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.0040330b
mov esp, ebp
pop ebp
ret 8