Function at 0x40c6f0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3648
call fcn.00429a50
mov eax, dword [0x456fc0]
mov dword [esp + 0x3644], eax
push ebx
push ebp
push esi
push edi
mov ebx, dword [0x45569c]
mov esi, dword [0x455690]
mov eax, 0x709ad4e5
imul esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0xc2c05bdf
imul ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
sub ebp, ecx
mov ecx, dword [0x45568c]
imul ecx, ecx, 0x217
add ebp, ecx
mov ecx, dword [0x4556a8]
mov edx, ecx
imul ecx, ecx, 0x246
imul edx, edx, 0x12b
add ebp, edx
mov edi, dword [0x455694]
mov eax, 0xe070381d
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
mov dword [str._r_____r____], eax
mov eax, 0x709ad4e5
imul ebx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0x1ed
sub ecx, eax
add ecx, edx
mov eax, 0x8c55841d
imul esi
add edx, esi
mov esi, dword [0x4556a0]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x365c]
sub ecx, esi
sub ecx, 0xb8
test eax, eax
push str.C:WINDOWS_system32driversetc_service5.ini
mov dword [0x455690], ecx
push 0x2800
jne 0x40c7f5
lea ecx, [esp + 0xe5c]
push ecx
push 0x445dd9
push str.ConfigL4
jmp 0x40c807
lea edx, [esp + 0xe5c]
push edx
push 0x445dd9
push str.ConfigL4x
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [0x455694]
mov eax, 0x709ad4e5
imul esi
imul esi, esi, 0xb8
mov edi, dword [0x455690]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45568c]
mov eax, edx
imul eax, eax, 0x23c
add ecx, eax
mov eax, edi
imul eax, eax, 0x217
add ecx, eax
mov eax, 0x42776e9b
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, esi
lea eax, [esp + 0xe54]
mov dword [0x45569c], ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c874
sub eax, esi
mov dword [esp + 0x10], eax
jne 0x40c89d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.004291fd
add esp, 0x3648
ret
mov edx, dword [0x4556a4]
imul edi, edi, 0xb8
mov esi, dword [0x4556a0]
mov eax, 0x42776e9b
imul esi, esi, 0xfffffde9
imul edx
sar edx, 7
mov ebp, dword [str._r_____r____]
mov eax, edx
mov ebx, dword [0x455688]
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x3949660b
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add esi, edx
add ecx, esi
lea edx, [esp + 0xe54]
sub ecx, edi
push edx
add ecx, ebp
lea eax, [esp + 0x18]
add ebx, ecx
push 0x190
push eax
mov dword [0x455688], ebx
call fcn.0040c150
mov esi, eax
add esp, 0xc
cmp esi, 4
jl 0x40cf76
mov ecx, esi
and ecx, reloc.WS2_32.dll_closesocket
jns 0x40c927
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x40cf76
mov edi, dword [0x455698]
mov ebx, dword [0x45568c]
mov ecx, dword [0x45569c]
mov ebp, edi
imul ebp, ebp, 0x1ed
mov edx, ebx
imul edx, edx, 0x217
add ebp, edx
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, dword [0x4556a4]
mov edx, ecx
imul edx, edx, 0x92
add ebp, eax
lea eax, [edx + ebp - 0xb8]
mov dword [0x455694], eax
mov eax, esi
cdq
mov ebp, 3
and edx, ebp
add eax, edx
sar eax, 2
mov dword [0x558258], eax
mov eax, dword [0x569484]
test eax, eax
jg 0x40cafd
mov eax, 0x8c55841d
imul ecx, ecx, 0x1d3
imul edi, edi, 0x59
imul ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add edx, ebx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
push str.C:WINDOWS_system32driversetc_service5.ini
add ecx, edi
push 0x800
mov dword [0x4556a0], ecx
lea ecx, [esp + 0x65c]
push ecx
push 0x445dd9
push str.ConfigL1
push str.GameType1
call esi
lea edx, [esp + 0x654]
push edx
call fcn.00429a0a
add esp, 4
cmp eax, ebp
mov edi, 0x78
jge 0x40ca18
mov dword [0x569484], ebp
jmp 0x40ca49
lea eax, [esp + 0x654]
push eax
call fcn.00429a0a
add esp, 4
cmp eax, edi
jle 0x40ca34
mov dword [0x569484], edi
jmp 0x40ca49
lea ecx, [esp + 0x654]
push ecx
call fcn.00429a0a
add esp, 4
mov dword [0x569484], eax
mov ecx, dword [0x45568c]
mov eax, 0x8c55841d
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 8
imul ecx, ecx, 0x1d3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455698]
push str.C:WINDOWS_system32driversetc_service5.ini
imul edx, edx, 0x59
push 0x800
sub ecx, eax
lea eax, [esp + 0x65c]
push eax
push 0x445dd9
push str.ConfigL2
add ecx, edx
push str.GameType1
mov dword [0x4556a0], ecx
call esi
lea ecx, [esp + 0x654]
push ecx
call fcn.00429a0a
add esp, 4
cmp eax, ebp
jge 0x40cac0
mov dword [0x569488], ebp
jmp 0x40caf1
lea edx, [esp + 0x654]
push edx
call fcn.00429a0a
add esp, 4
cmp eax, edi
jle 0x40cadc
mov dword [0x569488], edi
jmp 0x40caf1
lea eax, [esp + 0x654]
push eax
call fcn.00429a0a
add esp, 4
mov dword [0x569488], eax
mov ebx, dword [0x45568c]
mov edi, dword [0x455698]
mov esi, dword [0x4556a0]
mov ecx, dword [0x4556a8]
mov ebp, esi
imul ebp, ebp, 0x217
mov edx, ecx
imul edx, edx, 0x12b
sub ebp, edx
mov eax, 0xc3a13de7
imul ebx
add edx, ebx
mov ebx, dword [0x455690]
sar edx, 8
add ebp, edx
mov eax, edx
shr eax, 0x1f
add eax, ebp
mov ebp, eax
mov eax, 0xe070381d
imul ebx
add edx, ebx
mov ebx, dword [0x455694]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, ebx
add eax, 0x1d3
mov dword [0x45568c], eax
mov eax, dword [0x55825c]
test eax, eax
jg 0x40cd0b
mov eax, 0x3d3fa421
imul esi, esi, 0x14f
imul ecx
imul ecx, ecx, 0xb8
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, 0x6d978b8f
imul edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xe070381d
imul ebx
sub edi, ebp
add edx, ebx
sar edx, 7
add edi, esi
sub edi, ecx
mov ecx, edx
push str.C:WINDOWS_system32driversetc_service5.ini
shr ecx, 0x1f
push 0x800
add ecx, edx
lea edx, [esp + 0x65c]
push edx
push 0x445dd9
push str.ConfigL3
sub edi, ecx
push str.GameType1
mov dword [0x455698], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [0x4556a4]
mov eax, 0x709ad4e5
imul ecx
mov ecx, dword [0x45569c]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0xc2c05bdf
imul ecx
imul ecx, ecx, 0x92
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0x14f
mov edi, eax
sub edi, esi
add edi, edx
add edi, ecx
mov ecx, dword [0x45568c]
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [esp + 0x654]
sub edi, eax
push ecx
mov dword [0x4556a4], edi
call fcn.00429a0a
mov ecx, dword [0x558258]
add esp, 4
cmp eax, ecx
jge 0x40cc76
mov dword [0x55825c], ecx
jmp 0x40ccff
lea edx, [esp + 0x654]
push edx
call fcn.00429a0a
add esp, 4
cmp eax, 0x64
jle 0x40ccea
mov esi, dword [0x455698]
mov eax, dword [0x45568c]
imul esi, esi, 0x1ed
mov ecx, dword [0x45569c]
imul eax, eax, 0x217
add esi, eax
mov eax, 0xc3a13de7
imul ecx
mov eax, dword [0x4556a4]
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x92
sub esi, ecx
add esi, eax
lea eax, [edx + esi - 0xb8]
mov dword [0x455694], eax
mov dword [0x55825c], 0x64
jmp 0x40ccff
lea ecx, [esp + 0x654]
push ecx
call fcn.00429a0a
add esp, 4
mov dword [0x55825c], eax
mov ecx, dword [0x4556a8]
mov esi, dword [0x4556a0]
mov edi, dword [0x455690]
imul ecx, ecx, 0x246
mov eax, 0x709ad4e5
imul dword [0x45569c]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0x1ed
sub ecx, eax
add ecx, edx
mov eax, 0x8c55841d
imul edi
add edx, edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, esi
sub ecx, 0xb8
push 0
mov dword [0x455690], ecx
call fcn.00429a0f
sub eax, dword [0x5694ac]
add esp, 4
cmp eax, 0xa8c0
jl 0x40cde5
mov esi, dword [0x455698]
mov ecx, dword [0x45568c]
imul esi, esi, 0x1ed
imul ecx, ecx, 0x217
mov edi, dword [0x4556a4]
add esi, ecx
mov ecx, dword [0x45569c]
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 8
imul ecx, ecx, 0x92
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
lea edx, [ecx + esi - 0xb8]
push 0
mov dword [0x455694], edx
call fcn.00429a0f
add esp, 4
xor esi, esi
mov dword [0x5694ac], eax
mov dword [0x558260], esi
jmp 0x40cdeb
mov esi, dword [0x558260]
mov ecx, dword [0x4556a8]
mov eax, 0x3d3fa421
imul ecx
imul ecx, ecx, 0xb8
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455698]
mov edi, eax
mov eax, 0x6d978b8f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a0]
imul edx, edx, 0x14f
mov ebx, eax
sub ebx, edi
add ebx, edx
sub ebx, ecx
mov ecx, dword [0x455694]
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
cmp esi, dword [0x55825c]
mov dword [0x455698], ebx
jge 0x40cf5a
cmp esi, dword [0x558258]
jge 0x40ce8f
push 0
call fcn.00429a0f
mov ecx, dword [0x569484]
mov esi, dword [0x558264]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jge 0x40cec8
mov esi, dword [0x558260]
cmp esi, dword [0x55825c]
jge 0x40cf5a
cmp esi, dword [0x558258]
jl 0x40cf5a
push 0
call fcn.00429a0f
sub eax, dword [0x558264]
mov edx, dword [0x569488]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jl 0x40cf5a
mov ecx, dword [0x455694]
mov eax, 0x709ad4e5
imul ecx
imul ecx, ecx, 0xb8
sar edx, 8
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [0x45568c]
mov eax, edx
imul eax, eax, 0x23c
add esi, eax
mov eax, dword [0x455690]
imul eax, eax, 0x217
add esi, eax
mov eax, 0x42776e9b
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x558260]
cdq
idiv dword [0x558258]
add esi, ecx
mov dword [0x45569c], esi
shl edx, 4
mov eax, dword [esp + edx + 0x14]
mov edx, 0x558268
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40cf37
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.004291fd
add esp, 0x3648
ret
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.004291fd
add esp, 0x3648
ret
mov ecx, dword [esp + 0x3654]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
call fcn.004291fd
add esp, 0x3648
ret