Function at 0x40cf90
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3648
call fcn.0042a9b0
mov eax, dword [0x458190]
mov dword [esp + 0x3644], eax
push ebx
push esi
push edi
mov ecx, dword [0x456824]
mov eax, 0x7f3171f
imul ecx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
imul edx, edx, 0x293deaa
mov esi, dword [0x456838]
imul esi, esi, 0x372f5c1
sub esi, eax
add esi, edx
mov eax, 0x61bc1a5d
imul ecx
sar edx, 0x19
add esi, edx
mov ecx, edx
shr ecx, 0x1f
add ecx, esi
mov esi, dword [0x45681c]
mov eax, 0x979d1eb7
imul esi
add edx, esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45682c]
sub ecx, eax
mov eax, 0x7f3171f
imul edx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456818]
mov dword [str._r_____r____], ecx
imul ecx, ecx, 0x4067eec
imul edx, edx, 0xde454f
sub ecx, eax
mov esi, dword [0x456834]
add ecx, edx
mov edx, dword [0x456820]
mov eax, 0x31a5bd5f
imul edx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x3658]
sub ecx, esi
sub ecx, 0x5305094
test eax, eax
push str.C:WINDOWS_system32driversetc_service5.ini
mov dword [0x456820], ecx
push 0x2800
jne 0x40d093
lea ecx, [esp + 0xe58]
push ecx
push 0x446e15
push str.ConfigL4
jmp 0x40d0a5
lea edx, [esp + 0xe58]
push edx
push 0x446e15
push str.ConfigL4x
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [0x456820]
mov ecx, dword [0x456830]
mov esi, dword [0x45681c]
mov eax, 0x7f3171f
imul edi
sar edx, 0x15
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, dword [0x45682c]
imul edx, edx, 0x5305094
mov eax, ecx
imul eax, eax, 0x22d753a
add ebx, eax
add ebx, edx
mov eax, 0x936c7f27
imul esi
add edx, esi
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
imul edx, edx, 0x360833b
sub ebx, eax
add ebx, edx
lea eax, [esp + 0xe50]
mov dword [0x45682c], ebx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d120
sub eax, esi
mov dword [esp + 0xc], eax
jne 0x40d148
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042a171
add esp, 0x3648
ret
mov esi, dword [0x456834]
imul ecx, ecx, 0x360833b
mov eax, 0x3ac7f767
imul edi
sar edx, 0x17
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x62ace781
imul esi
mov eax, dword [0x456818]
imul eax, eax, 0x5305094
sar edx, 0x19
mov ebx, edx
add edi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, eax
mov eax, 0x936c7f27
imul esi
add edx, esi
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
sub ebx, ecx
push ebp
lea ecx, [esp + 0xe54]
push ecx
lea edx, [esp + 0x18]
push 0x190
push edx
mov dword [0x456818], ebx
call fcn.0040c9f0
mov ebp, eax
add esp, 0xc
cmp ebp, 4
jl 0x40d827
and eax, reloc.WS2_32.dll_closesocket
jns 0x40d1d4
dec eax
or eax, 0xfffffffc
inc eax
jne 0x40d827
mov ecx, dword [0x456828]
mov ebx, dword [0x456818]
imul ebx, ebx, 0x293deaa
mov edi, dword [str._r_____r____]
mov edx, ecx
imul edx, edx, 0xde454f
add ebx, edx
mov esi, dword [0x456830]
mov eax, 0x13a45601
imul dword [0x45682c]
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
imul edx, edx, 0x53d1950
sub ebx, eax
add ebx, esi
lea ebx, [edx + ebx - 0x5305094]
mov eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [0x559118], eax
mov eax, dword [0x56a348]
test eax, eax
mov dword [0x456824], ebx
jg 0x40d3cf
mov eax, dword [0x45682c]
imul ecx, ecx, 0x22d753a
imul ebx, ebx, 0xdef222
mov edx, dword [0x45681c]
imul eax, eax, 0x5305094
sub ecx, ebx
sub ecx, eax
mov eax, 0x31a5bd5f
imul edx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
push str.C:WINDOWS_system32driversetc_service5.ini
add eax, edx
sub ecx, eax
push 0x800
mov dword [0x456830], ecx
lea ecx, [esp + 0x65c]
push ecx
push 0x446e15
push str.ConfigL1
push str.GameType1
call ebp
lea edx, [esp + 0x654]
push edx
call fcn.0042a972
mov esi, 3
add esp, 4
cmp eax, esi
mov edi, 0x78
jge 0x40d2d6
mov dword [0x56a348], esi
jmp 0x40d307
lea eax, [esp + 0x654]
push eax
call fcn.0042a972
add esp, 4
cmp eax, edi
jle 0x40d2f2
mov dword [0x56a348], edi
jmp 0x40d307
lea ecx, [esp + 0x654]
push ecx
call fcn.0042a972
add esp, 4
mov dword [0x56a348], eax
mov ebx, dword [0x456828]
mov edx, dword [0x456824]
imul ebx, ebx, 0x22d753a
mov eax, dword [0x45682c]
imul edx, edx, 0xdef222
mov ecx, dword [0x45681c]
imul eax, eax, 0x5305094
sub ebx, edx
sub ebx, eax
mov eax, 0x31a5bd5f
imul ecx
sar edx, 0x17
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 0x446e15
push str.ConfigL2
sub ebx, ecx
push str.GameType1
mov dword [0x456830], ebx
call ebp
lea eax, [esp + 0x654]
push eax
call fcn.0042a972
add esp, 4
cmp eax, esi
jge 0x40d38c
mov dword [0x56a34c], esi
jmp 0x40d3bd
lea ecx, [esp + 0x654]
push ecx
call fcn.0042a972
add esp, 4
cmp eax, edi
jle 0x40d3a8
mov dword [0x56a34c], edi
jmp 0x40d3bd
lea edx, [esp + 0x654]
push edx
call fcn.0042a972
add esp, 4
mov dword [0x56a34c], eax
mov edi, dword [str._r_____r____]
mov esi, dword [0x456830]
mov ebx, dword [0x456824]
mov ecx, dword [0x456838]
imul esi, esi, 0x293deaa
mov edx, dword [0x45681c]
mov eax, ecx
imul eax, eax, 0x372f5c1
sub esi, eax
mov eax, 0x13a45601
imul edx
sar edx, 0x16
add esi, edx
mov eax, edx
shr eax, 0x1f
add eax, esi
mov dword [esp + 0x10], eax
mov eax, 0x61bc1a5d
imul ecx
mov eax, dword [esp + 0x10]
sar edx, 0x19
mov esi, edx
shr esi, 0x1f
add eax, edx
add esi, eax
mov eax, dword [0x55911c]
sub esi, edi
add esi, 0x294039f
test eax, eax
mov dword [0x45681c], esi
jg 0x40d5bd
mov eax, 0x94723637
imul esi, esi, 0x3422234
imul ecx
add edx, ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x63510a67
imul ecx
imul ecx, ecx, 0x5305094
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x61bc1a5d
imul ebx
sub edi, ecx
sar edx, 0x19
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 0x446e15
add edi, esi
push str.ConfigL3
sub edi, ecx
push str.GameType1
mov dword [0x456828], edi
call ebp
mov ecx, dword [0x456834]
mov esi, dword [0x456818]
mov eax, 0x7f3171f
imul esi, esi, 0x3422234
imul ecx
mov ecx, dword [0x456828]
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x61bc1a5d
imul ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x53d1950
sub esi, eax
add esi, edx
mov eax, 0x979d1eb7
imul ecx
add edx, ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [esp + 0x654]
sub esi, eax
push ecx
mov dword [0x456834], esi
call fcn.0042a972
mov ecx, dword [0x559118]
add esp, 4
cmp eax, ecx
jge 0x40d530
mov dword [0x55911c], ecx
jmp 0x40d5b7
lea edx, [esp + 0x654]
push edx
call fcn.0042a972
add esp, 4
cmp eax, 0x64
jle 0x40d5a2
mov ecx, dword [0x456818]
mov edx, dword [0x456828]
imul ecx, ecx, 0x293deaa
imul edx, edx, 0xde454f
mov edi, dword [str._r_____r____]
add ecx, edx
mov eax, 0x13a45601
imul dword [0x45682c]
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
imul edx, edx, 0x53d1950
sub ecx, eax
add ecx, dword [0x456830]
lea eax, [edx + ecx - 0x5305094]
mov dword [0x456824], eax
mov dword [0x55911c], 0x64
jmp 0x40d5bd
lea ecx, [esp + 0x654]
push ecx
call fcn.0042a972
add esp, 4
mov dword [0x55911c], eax
mov edi, dword [str._r_____r____]
mov eax, 0x7f3171f
imul edi, edi, 0x4067eec
imul dword [0x45682c]
mov ecx, dword [0x456820]
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, dword [0x456818]
imul eax, eax, 0xde454f
mov ebp, dword [0x456834]
add edi, eax
mov eax, 0x31a5bd5f
imul ecx
sar edx, 0x17
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub edi, ecx
sub edi, ebp
sub edi, 0x5305094
push 0
mov dword [0x456820], edi
call fcn.0042a977
sub eax, dword [0x56a370]
add esp, 4
cmp eax, 0xa8c0
jl 0x40d698
mov esi, dword [0x456818]
mov edx, dword [0x456828]
imul esi, esi, 0x293deaa
mov ecx, dword [0x45682c]
imul edx, edx, 0xde454f
mov edi, dword [0x456830]
add esi, edx
mov eax, 0x13a45601
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 0x16
imul ecx, ecx, 0x53d1950
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
lea edx, [ecx + esi - 0x5305094]
push 0
mov dword [0x456824], edx
call fcn.0042a977
add esp, 4
xor esi, esi
mov dword [0x56a370], eax
mov dword [0x559120], esi
jmp 0x40d69e
mov esi, dword [0x559120]
mov ecx, dword [0x456838]
mov eax, 0x94723637
imul ecx
add edx, ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x63510a67
imul ecx
imul ecx, ecx, 0x5305094
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
sub edi, ecx
mov ecx, dword [0x45681c]
imul ecx, ecx, 0x3422234
add edi, ecx
mov ecx, dword [0x456824]
mov eax, 0x61bc1a5d
imul ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
cmp esi, dword [0x55911c]
mov dword [0x456828], edi
jge 0x40d80b
cmp esi, dword [0x559118]
jge 0x40d73a
push 0
call fcn.0042a977
mov ecx, dword [0x56a348]
mov esi, dword [0x559124]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jge 0x40d773
mov esi, dword [0x559120]
cmp esi, dword [0x55911c]
jge 0x40d80b
cmp esi, dword [0x559118]
jl 0x40d80b
push 0
call fcn.0042a977
sub eax, dword [0x559124]
mov edx, dword [0x56a34c]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jl 0x40d80b
mov ecx, dword [0x456820]
mov esi, dword [0x45681c]
mov eax, 0x7f3171f
imul ecx
imul ecx, ecx, 0x360833b
mov eax, dword [0x456830]
sar edx, 0x15
imul eax, eax, 0x22d753a
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [0x45682c]
imul edx, edx, 0x5305094
add edi, eax
add edi, edx
mov eax, 0x936c7f27
imul esi
add edx, esi
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, dword [0x559120]
cdq
idiv dword [0x559118]
add edi, ecx
mov dword [0x45682c], edi
shl edx, 4
mov eax, dword [esp + edx + 0x14]
mov edx, 0x559128
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d7e8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042a171
add esp, 0x3648
ret
pop ebp
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042a171
add esp, 0x3648
ret
mov ecx, dword [esp + 0x3654]
pop ebp
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
call fcn.0042a171
add esp, 0x3648
ret