Function at 0x40f570
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x364c
call fcn.0042f460
mov eax, dword [0x45d320]
mov ecx, dword [0x45b9b4]
mov dword [esp + 0x3648], eax
push ebx
push ebp
mov eax, 0x92ea28a3
imul ecx
add edx, ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
mov esi, dword [0x45b9c8]
mov ebx, esi
imul ebx, ebx, 0xde7fc
sub ebx, eax
push edi
mov edi, dword [0x45b9ac]
mov eax, 0x6352a551
imul edi
sar edx, 0x12
add ebx, edx
mov ebp, edx
mov eax, 0x6352a551
imul ecx
sar edx, 0x12
mov ecx, edx
shr ebp, 0x1f
add ebp, ebx
add ebp, edx
mov edx, dword [0x45b9c0]
imul edx, edx, 0x6a5ba
shr ecx, 0x1f
add ecx, ebp
add ecx, edx
mov eax, 0x9dbc161
imul edi
mov edi, dword [0x45b9bc]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x92ea28a3
imul edi
add edx, edi
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [str._r_____r____], ecx
imul ecx, ecx, 0x6f854
sub ecx, eax
mov edx, esi
imul edx, edx, 0x6f3fe
add ecx, edx
mov edx, dword [0x45b9b0]
mov eax, 0x10779897
imul edx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x6352a551
imul esi
sar edx, 0x12
add ecx, edx
mov eax, edx
mov edx, dword [0x45b9c4]
shr eax, 0x1f
add eax, ecx
mov ecx, dword [0x45b9a8]
imul ecx, ecx, 0xc0c12
add eax, ecx
sub eax, edx
sub eax, 0x53d95
mov dword [0x45b9b0], eax
mov eax, dword [esp + 0x3660]
test eax, eax
push str.C:WINDOWS_system32driversetc_service5.ini
push 0x2800
jne 0x40f6a6
lea edx, [esp + 0xe60]
push edx
push 0x44bdb5
push str.ConfigL4
jmp 0x40f6b8
lea eax, [esp + 0xe60]
push eax
push 0x44bdb5
push str.ConfigL4x
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [0x45b9b0]
mov edi, dword [0x45b9c0]
mov eax, 0x92ea28a3
imul esi
add edx, esi
sar edx, 0x12
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, edi
imul edx, edx, 0x85399
add ebx, edx
mov edx, dword [0x45b9b8]
mov eax, 0x6352a551
imul edx
mov eax, dword [0x45b9bc]
imul eax, eax, 0x53d95
sar edx, 0x12
mov ecx, dword [0x45b9c8]
mov ebp, edx
imul ecx, ecx, 0x6f3fe
add ebx, edx
mov edx, dword [0x45b9ac]
shr ebp, 0x1f
add ebp, ebx
add ebp, eax
mov eax, 0x2a7feb
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0x67dee
sub ebp, eax
add ebp, ecx
add edx, ebp
lea eax, [esp + 0xe58]
mov dword [0x45b9bc], edx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f753
sub eax, ebx
mov dword [esp + 0x10], eax
jne 0x40f77c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3648]
call fcn.0042ec21
add esp, 0x364c
ret
mov eax, 0xf5f5c9f5
imul edi, edi, 0x67dee
imul esi
add edx, esi
mov esi, dword [0x45b9a8]
sar edx, 0x13
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x6352a551
imul esi
imul esi, esi, 0x53d95
sar edx, 0x12
mov ebp, edx
add ebx, edx
shr ebp, 0x1f
add ebp, ebx
mov ebx, dword [0x45b9c4]
mov eax, 0x61b317a1
imul ebx
sar edx, 0x11
add ebp, edx
mov eax, edx
shr eax, 0x1f
add eax, ebp
add eax, esi
mov ebp, eax
mov eax, 0x2a7feb
imul ebx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
sub ebp, edi
add ebp, ecx
lea ecx, [esp + 0xe58]
push ecx
lea edx, [esp + 0x1c]
push 0x190
push edx
mov dword [0x45b9a8], ebp
call fcn.0040ee40
add esp, 0xc
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x40ffef
and eax, reloc.WS2_32.dll_closesocket
jns 0x40f821
dec eax
or eax, 0xfffffffc
inc eax
jne 0x40ffef
mov ebx, dword [0x45b9bc]
mov eax, 0x93a3ffdd
imul ebx
add edx, ebx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x6352a551
imul dword [0x45b9c4]
sar edx, 0x12
mov edi, dword [0x45b9c8]
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
mov esi, dword [str._r_____r____]
mov edx, esi
imul edx, edx, 0xa4f50
add eax, edx
mov edx, dword [0x45b9a8]
imul edx, edx, 0x6a5ba
mov ecx, edi
imul ecx, ecx, 0x6f3fe
add edx, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [0x45b9b8]
mov ebp, ecx
imul ebp, ebp, 0xc0c12
add edx, eax
mov eax, dword [0x45b9c0]
add ebp, edx
lea ebp, [eax + ebp - 0x53d95]
mov eax, dword [esp + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [0x55e2b8], eax
mov eax, dword [0x56f4e8]
test eax, eax
mov dword [0x45b9b4], ebp
jg 0x40fa88
mov edx, dword [0x45b9ac]
imul ecx, ecx, 0x85399
imul ebp, ebp, 0x3110b
mov eax, 0x10779897
imul edx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x6352a551
imul ebx
imul ebx, ebx, 0x53d95
sar edx, 0x12
push str.C:WINDOWS_system32driversetc_service5.ini
mov eax, edx
shr eax, 0x1f
add ecx, edx
add eax, ecx
push 0x800
lea ecx, [esp + 0x660]
push ecx
sub eax, ebx
mov ebx, dword [esp + 0x1c]
push 0x44bdb5
sub eax, ebp
push str.ConfigL1
add eax, ebx
push str.GameType1
mov dword [0x45b9c0], eax
call esi
lea edx, [esp + 0x658]
push edx
call fcn.0042f422
mov edi, 3
add esp, 4
cmp eax, edi
mov ebx, 0x78
jge 0x40f968
mov dword [0x56f4e8], edi
jmp 0x40f999
lea eax, [esp + 0x658]
push eax
call fcn.0042f422
add esp, 4
cmp eax, ebx
jle 0x40f984
mov dword [0x56f4e8], ebx
jmp 0x40f999
lea ecx, [esp + 0x658]
push ecx
call fcn.0042f422
add esp, 4
mov dword [0x56f4e8], eax
mov ecx, dword [0x45b9ac]
mov ebp, dword [0x45b9c8]
mov eax, 0x10779897
imul ebp, ebp, 0x6f3fe
imul ecx
mov ecx, dword [0x45b9b8]
imul ecx, ecx, 0x85399
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
add ebp, ecx
mov ecx, dword [0x45b9bc]
mov eax, 0x6352a551
imul ecx
imul ecx, ecx, 0x53d95
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, ecx
mov ecx, dword [0x45b9b4]
push str.C:WINDOWS_system32driversetc_service5.ini
imul ecx, ecx, 0x3110b
push 0x800
lea edx, [esp + 0x660]
push edx
push 0x44bdb5
push str.ConfigL2
sub eax, ecx
push str.GameType1
mov dword [0x45b9c0], eax
call esi
lea eax, [esp + 0x658]
push eax
call fcn.0042f422
add esp, 4
cmp eax, edi
jge 0x40fa3f
mov dword [0x56f4ec], edi
jmp 0x40fa70
lea ecx, [esp + 0x658]
push ecx
call fcn.0042f422
add esp, 4
cmp eax, ebx
jle 0x40fa5b
mov dword [0x56f4ec], ebx
jmp 0x40fa70
lea edx, [esp + 0x658]
push edx
call fcn.0042f422
add esp, 4
mov dword [0x56f4ec], eax
mov esi, dword [str._r_____r____]
mov ebp, dword [0x45b9b4]
mov edi, dword [0x45b9c8]
mov ebx, dword [0x45b9bc]
mov ecx, dword [0x45b9ac]
mov eax, 0x93a3ffdd
imul ecx
add edx, ecx
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x6352a551
imul edi
sar edx, 0x12
add ecx, edx
mov eax, edx
shr eax, 0x1f
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, 0x6352a551
imul esi
mov eax, dword [esp + 0x10]
sar edx, 0x12
add eax, edx
mov ecx, edx
mov edx, dword [0x45b9c0]
imul edx, edx, 0x6a5ba
shr ecx, 0x1f
add ecx, eax
mov eax, dword [0x55e2bc]
add ecx, edx
sub ecx, esi
add ecx, 0x3e2f3
test eax, eax
mov dword [0x45b9ac], ecx
jg 0x40fcfd
mov eax, 0x24d17191
imul ecx, ecx, 0x6ef8e
imul edi
sar edx, 0x10
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x6352a551
imul dword [0x45b9c0]
add esi, ecx
sar edx, 0x12
mov ecx, edx
add esi, edx
mov eax, 0x6352a551
imul ebp
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
imul edx, edx, 0x1b669
shr ecx, 0x1f
add ecx, esi
sub ecx, eax
add ecx, edx
mov eax, 0x2682f007
imul edi
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
push str.C:WINDOWS_system32driversetc_service5.ini
add eax, edx
sub ecx, eax
push 0x800
mov dword [0x45b9b8], ecx
lea ecx, [esp + 0x660]
push ecx
push 0x44bdb5
push str.ConfigL3
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [0x45b9c4]
mov esi, dword [0x45b9c8]
mov eax, 0x92ea28a3
imul esi, esi, 0x6f3fe
imul ecx
add edx, ecx
mov ecx, dword [0x45b9a8]
sar edx, 0x12
imul ecx, ecx, 0x6ef8e
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
mov ecx, dword [0x45b9b8]
mov edx, ecx
imul edx, edx, 0xa4f50
add esi, edx
mov eax, 0x6352a551
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45b9b4]
sub esi, eax
mov eax, 0x6352a551
imul edx
sar edx, 0x12
add esi, edx
mov edi, edx
mov eax, 0x9dbc161
imul ecx
sar edx, 0xe
mov ecx, edx
shr edi, 0x1f
shr ecx, 0x1f
add edi, esi
add ecx, edx
sub edi, ecx
lea edx, [esp + 0x658]
push edx
mov dword [0x45b9c4], edi
call fcn.0042f422
mov ecx, dword [0x55e2b8]
add esp, 4
cmp eax, ecx
jge 0x40fc34
mov dword [0x55e2bc], ecx
jmp 0x40fceb
lea eax, [esp + 0x658]
push eax
call fcn.0042f422
add esp, 4
cmp eax, 0x64
jle 0x40fcd6
mov ebx, dword [0x45b9bc]
mov edi, dword [0x45b9c8]
mov eax, 0x93a3ffdd
imul ebx
add edx, ebx
sar edx, 0x12
mov ecx, edi
imul ecx, ecx, 0x6f3fe
mov eax, edx
mov esi, dword [str._r_____r____]
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x6352a551
imul dword [0x45b9c4]
sar edx, 0x12
add ecx, edx
mov eax, edx
mov edx, dword [0x45b9a8]
shr eax, 0x1f
imul edx, edx, 0x6a5ba
add eax, ecx
mov ecx, esi
imul ecx, ecx, 0xa4f50
add eax, ecx
add edx, dword [0x45b9c0]
mov ecx, dword [0x45b9b8]
imul ecx, ecx, 0xc0c12
add edx, eax
lea edx, [ecx + edx - 0x53d95]
mov dword [0x45b9b4], edx
mov dword [0x55e2bc], 0x64
jmp 0x40fcfd
lea eax, [esp + 0x658]
push eax
call fcn.0042f422
add esp, 4
mov dword [0x55e2bc], eax
mov esi, dword [str._r_____r____]
mov edi, dword [0x45b9c8]
mov ebx, dword [0x45b9bc]
mov eax, 0x92ea28a3
imul esi, esi, 0x6f854
imul ebx
add edx, ebx
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, edi
imul edx, edx, 0x6f3fe
sub esi, ecx
mov ecx, dword [0x45b9b0]
add esi, edx
mov eax, 0x10779897
imul ecx
sar edx, 0xe
mov ebp, dword [0x45b9c4]
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x6352a551
imul edi
mov eax, dword [0x45b9a8]
imul eax, eax, 0xc0c12
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add esi, edx
add ecx, esi
add ecx, eax
sub ecx, ebp
sub ecx, 0x53d95
push 0
mov dword [0x45b9b0], ecx
call fcn.0042f427
sub eax, dword [0x56f510]
add esp, 4
cmp eax, 0xa8c0
jl 0x40fe1e
mov ecx, dword [0x45b9bc]
mov esi, dword [0x45b9c8]
mov eax, 0x93a3ffdd
imul esi, esi, 0x6f3fe
imul ecx
add edx, ecx
mov ecx, dword [0x45b9c4]
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x6352a551
imul ecx
mov eax, dword [0x45b9a8]
mov edi, dword [0x45b9c0]
imul eax, eax, 0x6a5ba
sar edx, 0x12
mov ecx, edx
add esi, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0xa4f50
shr ecx, 0x1f
add ecx, esi
add ecx, edx
mov edx, dword [0x45b9b8]
imul edx, edx, 0xc0c12
add eax, edi
add eax, ecx
lea eax, [edx + eax - 0x53d95]
push 0
mov dword [0x45b9b4], eax
call fcn.0042f427
add esp, 4
xor esi, esi
mov dword [0x56f510], eax
mov dword [0x55e2c0], esi
jmp 0x40fe24
mov esi, dword [0x55e2c0]
mov ecx, dword [0x45b9c8]
mov eax, 0x24d17191
imul ecx
sar edx, 0x10
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [0x45b9ac]
imul edx, edx, 0x6ef8e
add edi, edx
mov edx, dword [0x45b9c0]
mov eax, 0x6352a551
imul edx
sar edx, 0x12
add edi, edx
mov ebx, edx
mov edx, dword [0x45b9b4]
mov eax, 0x6352a551
imul edx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x1b669
shr ebx, 0x1f
add ebx, edi
sub ebx, eax
add ebx, edx
mov eax, 0x2682f007
imul ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
cmp esi, dword [0x55e2bc]
mov dword [0x45b9b8], ebx
jge 0x40ffd3
cmp esi, dword [0x55e2b8]
jge 0x40fed7
push 0
call fcn.0042f427
mov ecx, dword [0x56f4e8]
mov esi, dword [0x55e2c4]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jge 0x40ff10
mov esi, dword [0x55e2c0]
cmp esi, dword [0x55e2bc]
jge 0x40ffd3
cmp esi, dword [0x55e2b8]
jl 0x40ffd3
push 0
call fcn.0042f427
sub eax, dword [0x55e2c4]
mov edx, dword [0x56f4ec]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jl 0x40ffd3
mov ecx, dword [0x45b9b0]
mov eax, 0x92ea28a3
imul ecx
mov eax, dword [0x45b9c8]
add edx, ecx
imul eax, eax, 0x6f3fe
imul ecx, ecx, 0x67dee
sar edx, 0x12
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [0x45b9c0]
imul edx, edx, 0x85399
add esi, eax
add esi, edx
mov edx, dword [0x45b9b8]
mov eax, 0x6352a551
imul edx
mov eax, dword [0x45b9bc]
imul eax, eax, 0x53d95
sar edx, 0x12
mov edi, edx
add esi, edx
mov edx, dword [0x45b9ac]
shr edi, 0x1f
add edi, esi
add edi, eax
mov eax, 0x2a7feb
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, dword [0x55e2c0]
cdq
idiv dword [0x55e2b8]
add edi, ecx
mov ecx, 0x55e2c8
mov dword [0x45b9bc], edi
shl edx, 4
mov eax, dword [esp + edx + 0x18]
sub ecx, eax
jmp 0x40ffb0
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x40ffb0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3648]
call fcn.0042ec21
add esp, 0x364c
ret
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x3648]
call fcn.0042ec21
add esp, 0x364c
ret
mov ecx, dword [esp + 0x3658]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
call fcn.0042ec21
add esp, 0x364c
ret