Function at 0x40dec4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7f58
mov eax, dword fs:[0]
push eax
mov eax, 0x10fc
call fcn.00497500
mov eax, dword [0x5002b0]
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 + 0xc]
mov esi, dword [ebp + 8]
mov edi, ecx
push eax
mov dword [ebp - 0x10f4], eax
lea eax, [ebp - 0x1104]
lea ecx, [edi + 0x38]
xor ebx, ebx
push eax
mov dword [ebp - 0x10f8], edi
mov dword [ebp - 0x10fc], esi
mov dword [ebp - 0x1104], ebx
mov dword [ebp - 0x1100], ecx
call fcn.004094ad
mov ecx, dword [ebp - 0x1104]
cmp ecx, dword [edi + 0x3c]
je 0x40df4b
add ecx, 0x28
push ecx
mov ecx, esi
call fcn.00409485
mov eax, esi
jmp 0x40e3b3
mov esi, 0x4c16fc
push esi
call fcn.00495461
pop ecx
mov ecx, dword [ebp - 0x10f4]
push eax
push ebx
push esi
call fcn.004087e1
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
mov word [ebp - 0x102c], ax
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x40e3cf
mov ecx, dword [ebp - 0x10f4]
push esi
push ebx
lea eax, [ebp - 0x1048]
push eax
call fcn.00409723
mov ecx, dword [ebp - 0x10f4]
push 0xffffffffffffffff
inc esi
push esi
lea eax, [ebp - 0x10b8]
push eax
mov byte [ebp - 4], 1
call fcn.00409723
xor eax, eax
push 0xffe
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.00495b20
lea eax, [ebp - 0x10b8]
push eax
lea eax, [ebp - 0x1080]
push eax
call fcn.0040b558
push eax
lea eax, [ebp - 0x109c]
push eax
mov byte [ebp - 4], 3
call fcn.0040b281
push eax
lea eax, [ebp - 0x1064]
push eax
mov byte [ebp - 4], 4
call fcn.0040b4ae
add edi, 0x1c
add esp, 0x24
cmp dword [edi + 0x14], 8
jb 0x40e01c
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x40e024
mov eax, dword [eax]
cmp dword [ebp - 0x1034], 8
mov ecx, dword [ebp - 0x1048]
jae 0x40e039
lea ecx, [ebp - 0x1048]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x4c1bc0
push eax
push ecx
call edi
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x1064]
call fcn.00401129
push ebx
push esi
lea ecx, [ebp - 0x109c]
call fcn.00408711
push ebx
push esi
lea ecx, [ebp - 0x1080]
mov byte [ebp - 4], 2
call fcn.00408711
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1064]
call fcn.004025ee
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x10d4]
push eax
mov byte [ebp - 4], 5
call fcn.0040b558
push eax
lea eax, [ebp - 0x109c]
push eax
mov byte [ebp - 4], 6
call fcn.0040b397
push eax
lea eax, [ebp - 0x1080]
push eax
mov byte [ebp - 4], 7
call fcn.0040b4ae
add esp, 0x18
push eax
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 8
call fcn.0040261f
push ebx
push esi
lea ecx, [ebp - 0x1080]
call fcn.00401129
push ebx
push esi
lea ecx, [ebp - 0x109c]
call fcn.00408711
push ebx
push esi
lea ecx, [ebp - 0x10d4]
call fcn.00408711
push ebx
push esi
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 2
call fcn.00401129
cmp dword [ebp - 0x101c], ebx
jne 0x40e2dc
mov eax, dword [ebp - 0x10f8]
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x40e136
mov eax, dword [eax]
cmp dword [ebp - 0x10a4], 8
mov edx, dword [ebp - 0x10b8]
jae 0x40e14b
lea edx, [ebp - 0x10b8]
cmp dword [ebp - 0x1034], 8
mov ecx, dword [ebp - 0x1048]
jae 0x40e160
lea ecx, [ebp - 0x1048]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x4c1bc0
push edx
push ecx
call edi
lea eax, [ebp - 0x1010]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x102c]
call fcn.00402570
cmp dword [ebp - 0x101c], ebx
jne 0x40e2dc
lea eax, [ebp - 0x10b8]
push eax
lea eax, [ebp - 0x109c]
push eax
call fcn.0040b558
push eax
lea eax, [ebp - 0x1080]
push eax
mov byte [ebp - 4], 9
call fcn.0040b281
push eax
lea eax, [ebp - 0x10d4]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040b4ae
mov ecx, dword [ebp - 0x10f8]
add esp, 0x18
cmp dword [ecx + 0x14], 8
jb 0x40e1e8
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x40e1f2
mov edx, dword [eax]
jmp 0x40e1f4
mov edx, eax
cmp dword [ebp - 0x1034], 8
mov eax, dword [ebp - 0x1048]
jae 0x40e209
lea eax, [ebp - 0x1048]
push ecx
push 0x800
lea ecx, [ebp - 0x1010]
push ecx
push 0x4c1bc0
push edx
push eax
call edi
push ebx
push esi
lea ecx, [ebp - 0x10d4]
call fcn.00401129
push ebx
push esi
lea ecx, [ebp - 0x1080]
call fcn.00408711
push ebx
push esi
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 2
call fcn.00408711
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1064]
call fcn.004025ee
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x109c]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040b558
push eax
lea eax, [ebp - 0x1080]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040b397
push eax
lea eax, [ebp - 0x10d4]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040b4ae
add esp, 0x18
push eax
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 0xe
call fcn.0040261f
push ebx
push esi
lea ecx, [ebp - 0x10d4]
call fcn.00401129
push ebx
push esi
lea ecx, [ebp - 0x1080]
call fcn.00408711
push ebx
push esi
lea ecx, [ebp - 0x109c]
call fcn.00408711
push ebx
push esi
lea ecx, [ebp - 0x1064]
call fcn.00401129
push ebx
push esi
lea ecx, [ebp - 0x10b8]
call fcn.00401129
push ebx
push esi
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], bl
call fcn.00401129
cmp dword [ebp - 0x101c], ebx
jne 0x40e340
mov edi, dword [ebp - 0x10f8]
mov ecx, dword [edi + 0x48]
cmp ecx, ebx
je 0x40e340
push dword [ebp - 0x10f4]
lea eax, [ebp - 0x10d4]
push eax
call fcn.0040da64
push eax
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 0xf
call fcn.0040261f
push ebx
push esi
lea ecx, [ebp - 0x10d4]
mov byte [ebp - 4], bl
call fcn.00401129
lea eax, [ebp - 0x102c]
push eax
push dword [ebp - 0x10f4]
lea eax, [ebp - 0x10f0]
push eax
call fcn.0040c9e3
add esp, 0xc
mov ecx, dword [ebp - 0x1100]
push ebx
push eax
mov byte [ebp - 4], 0x10
call fcn.0040d6b8
mov ecx, dword [ebp - 0x1100]
push eax
lea eax, [ebp - 0x1108]
push eax
call fcn.0040ae34
lea ecx, [ebp - 0x10f0]
mov byte [ebp - 4], bl
call fcn.00405720
mov ecx, dword [ebp - 0x10fc]
lea eax, [ebp - 0x102c]
push eax
call fcn.0040267b
push ebx
push esi
lea ecx, [ebp - 0x102c]
call fcn.00401129
mov eax, dword [ebp - 0x10fc]
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.004959f8
leave
ret 8
xor esi, esi
inc esi
jmp 0x40e307