Function at 0x40cd70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x43055c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [ebp - 0x2ca]
push ecx
mov word [ebp - 0x2cc], ax
call fcn.004146f0
add esp, 0xc
xor eax, eax
jmp 0x40cdb0
movzx ecx, word [eax + 0x431f10]
mov word [ebp + eax - 0x2cc], cx
add eax, 2
test cx, cx
jne 0x40cdb0
lea eax, [ebp - 0x2cc]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40cdd0
mov edx, dword [str.km.ini]
mov ecx, dword [0x4295a4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [eax], edx
mov edx, dword [0x4295a8]
mov dword [eax + 4], ecx
mov ecx, dword [0x4295ac]
mov dword [eax + 8], edx
lea edx, [ebp - 0x2cc]
push edx
push 0x20
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x44]
push eax
push 0x426f48
push 0x429598
push str.DREC
call esi
lea ecx, [ebp - 0x2cc]
push ecx
push 0x20
lea edx, [ebp - 0x84]
push edx
push 0x426f48
push 0x429584
push str.DREC
call esi
lea eax, [ebp - 0x2cc]
push eax
push 0x20
lea ecx, [ebp - 0xc4]
push ecx
push 0x426f48
push 0x42957c
push str.DREC
call esi
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18c]
push str.keydowncount
call eax
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x18c]
push str.mousedowncount
call eax
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 0x18c]
push str.mousemovedistance
call eax
mov ebx, eax
test esi, esi
je 0x40cfd6
test edi, edi
je 0x40cfd6
test ebx, ebx
je 0x40cfd6
mov edx, dword [0x4304e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4304e4
call eax
mov edx, dword [0x4304e4]
add eax, 0x10
mov dword [ebp - 0x2d0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4304e4
call eax
mov edx, dword [0x4304e4]
add eax, 0x10
mov dword [ebp - 0x2d4], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4304e4
call eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x2d0]
add eax, 0x10
push 0x429510
push edx
mov dword [ebp - 0x2d8], eax
call fcn.00403560
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x2d4]
push 0x429510
push ecx
call fcn.00403560
lea edx, [ebp - 0xc4]
push edx
lea eax, [ebp - 0x2d8]
push 0x429500
push eax
call fcn.00403560
mov edx, dword [esi]
mov eax, dword [ebp - 0x2d0]
mov edx, dword [edx + 0x30]
add esp, 0x24
push eax
mov ecx, esi
call edx
mov eax, dword [edi]
mov esi, dword [ebp - 0x2d4]
mov edx, dword [eax + 0x30]
push esi
mov ecx, edi
call edx
mov eax, dword [ebx]
mov edi, dword [ebp - 0x2d8]
mov edx, dword [eax + 0x30]
push edi
mov ecx, ebx
call edx
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2d0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004138ed
mov esp, ebp
pop ebp
ret