Function at 0x40da70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469eae
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x48794c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], ebx
call fcn.0040ba30
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jne 0x40dacd
mov byte [ebp - 4], bl
lea eax, [ecx - 0x10]
jmp 0x40dc44
jle 0x40daef
push 0x2e
push ecx
call fcn.0043f74d
mov ecx, dword [ebp - 0x21c]
add esp, 8
cmp eax, ebx
je 0x40daef
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dafa
mov byte [ebp - 4], bl
lea eax, [ecx - 0x10]
jmp 0x40dc44
mov eax, dword [ecx - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004089d0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
mov eax, dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push ecx
inc eax
mov ecx, esi
call fcn.004088e0
lea ebx, [ebp - 0x21c]
call fcn.00408b60
mov ebx, eax
call fcn.00408be0
lea ebx, [ebp - 0x220]
call fcn.00408b60
mov ebx, eax
call fcn.00408be0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x40dc18
cmp dword [ecx - 0xc], ebx
je 0x40dc18
mov edx, dword [0x49a248]
push edx
push 0x104
lea edx, [ebp - 0x218]
push edx
mov edx, dword [ebp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00401ac0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40dc85
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ea11
mov esp, ebp
pop ebp
ret 8