Function at 0x40c650
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3648
call fcn.004298a0
mov eax, dword [0x456fc0]
mov dword [esp + 0x3644], eax
push ebx
push ebp
push esi
mov esi, dword [0x45569c]
mov eax, 0x59da2e6b
imul esi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
push edi
mov edi, dword [0x455690]
mov eax, 0x9cbd99d5
imul edi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
sub ebx, ecx
mov ecx, dword [0x45568c]
imul ecx, ecx, 0x140f
add ebx, ecx
mov ecx, dword [0x4556a8]
mov edx, ecx
imul ecx, ecx, 0x14a2
imul edx, edx, 0xaef
add ebx, edx
mov edx, dword [0x455694]
mov eax, 0x4700d503
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add ebx, edx
add eax, ebx
mov dword [str._r_____r____], eax
mov eax, 0x6342662b
imul esi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0x12b9
sub ecx, eax
mov esi, dword [0x4556a0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add ecx, edx
mov eax, 0x1cb32649
imul edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x365c]
sub ecx, esi
sub ecx, 0x5cc
test eax, eax
push str.C:WINDOWS_system32driversetc_service5.ini
mov dword [0x455690], ecx
push 0x2800
jne 0x40c757
lea ecx, [esp + 0xe5c]
push ecx
push 0x445dd9
push str.ConfigL4
jmp 0x40c769
lea edx, [esp + 0xe5c]
push edx
push 0x445dd9
push str.ConfigL4x
push str.GameType1
call ebp
mov ebx, dword [0x45568c]
mov edi, dword [0x455690]
mov esi, dword [0x455694]
mov eax, edi
imul eax, eax, 0x16cb
mov ecx, ebx
imul ecx, ecx, 0x15c4
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, 0x6342662b
imul esi
imul esi, esi, 0x5cc
mov eax, dword [esp + 0x10]
sar edx, 0xb
add eax, edx
mov ecx, edx
shr ecx, 0x1f
add ecx, eax
mov eax, 0x6d62dd3b
imul ebx
sar edx, 0xb
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]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c7e0
sub eax, esi
mov dword [esp + 0x10], eax
jne 0x40c809
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042904d
add esp, 0x3648
ret
mov esi, dword [0x4556a0]
imul edi, edi, 0x5cc
mov eax, 0x5e17e411
imul esi, esi, 0x16cb
imul ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebx, ecx
mov ecx, dword [0x4556a4]
mov eax, 0x6d62dd3b
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, esi
sub ebx, eax
mov eax, dword [0x455688]
sub ebx, edi
add ebx, ecx
lea ecx, [esp + 0xe54]
push ecx
lea edx, [esp + 0x18]
add eax, ebx
push 0x190
push edx
mov dword [0x455688], eax
call fcn.0040c0a0
mov esi, eax
add esp, 0xc
cmp esi, 4
jl 0x40cecf
and eax, reloc.WS2_32.dll_closesocket
jns 0x40c890
dec eax
or eax, 0xfffffffc
inc eax
jne 0x40cecf
mov edi, dword [0x455698]
mov ebx, dword [0x45568c]
imul ebx, ebx, 0x140f
mov ecx, edi
imul ecx, ecx, 0x12b9
add ebx, ecx
mov ecx, dword [0x45569c]
mov eax, 0x903bb8bb
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, dword [0x4556a4]
mov edx, ecx
imul edx, edx, 0x736
add ebx, eax
lea eax, [edx + ebx - 0x5cc]
mov dword [0x455694], eax
mov eax, esi
cdq
mov esi, 3
and edx, esi
add eax, edx
sar eax, 2
mov dword [0x558258], eax
mov eax, dword [0x569484]
test eax, eax
jg 0x40ca5e
mov eax, 0x1cb32649
imul ecx, ecx, 0x11d7
imul edi, edi, 0x509
imul dword [0x45568c]
sar edx, 9
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 ebp
lea edx, [esp + 0x654]
push edx
call fcn.0042985a
add esp, 4
cmp eax, esi
mov edi, 0x78
jge 0x40c97e
mov dword [0x569484], esi
jmp 0x40c9af
lea eax, [esp + 0x654]
push eax
call fcn.0042985a
add esp, 4
cmp eax, edi
jle 0x40c99a
mov dword [0x569484], edi
jmp 0x40c9af
lea ecx, [esp + 0x654]
push ecx
call fcn.0042985a
add esp, 4
mov dword [0x569484], eax
mov ecx, dword [0x45568c]
mov eax, 0x1cb32649
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 9
imul ecx, ecx, 0x11d7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455698]
push str.C:WINDOWS_system32driversetc_service5.ini
imul edx, edx, 0x509
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 ebp
lea ecx, [esp + 0x654]
push ecx
call fcn.0042985a
add esp, 4
cmp eax, esi
jge 0x40ca27
mov dword [0x569488], esi
jmp 0x40ca58
lea edx, [esp + 0x654]
push edx
call fcn.0042985a
add esp, 4
cmp eax, edi
jle 0x40ca43
mov dword [0x569488], edi
jmp 0x40ca58
lea eax, [esp + 0x654]
push eax
call fcn.0042985a
add esp, 4
mov dword [0x569488], eax
mov edi, dword [0x455698]
mov ecx, dword [0x45568c]
mov esi, dword [0x4556a0]
mov eax, 0x903bb8bb
imul ecx
mov ebx, esi
imul ebx, ebx, 0x140f
add edx, ecx
mov ecx, dword [0x4556a8]
sar edx, 0xb
add ebx, edx
mov eax, edx
shr eax, 0x1f
add eax, ebx
mov edx, ecx
imul edx, edx, 0xaef
sub eax, edx
mov ebx, eax
mov eax, 0x4700d503
imul dword [0x455690]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add ebx, edx
add eax, ebx
mov ebx, dword [0x455694]
sub eax, ebx
add eax, 0x11d7
mov dword [0x45568c], eax
mov eax, dword [0x55825c]
test eax, eax
jg 0x40cc64
mov eax, 0xcc33a611
imul esi, esi, 0xe33
imul ecx
add edx, ecx
imul ecx, ecx, 0x5cc
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x5da803a9
imul edi
sar edx, 0xa
mov edi, edx
add esi, edx
mov eax, 0x4700d503
imul ebx
sar edx, 9
mov eax, edx
shr edi, 0x1f
shr eax, 0x1f
push str.C:WINDOWS_system32driversetc_service5.ini
add edi, esi
add eax, edx
sub edi, eax
push 0x800
sub edi, ecx
lea ecx, [esp + 0x65c]
push ecx
push 0x445dd9
push str.ConfigL3
push str.GameType1
mov dword [0x455698], edi
call ebp
mov ecx, dword [0x45569c]
mov eax, 0x59da2e6b
imul ecx
imul ecx, ecx, 0x736
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a4]
mov esi, eax
mov eax, 0x9cbd99d5
imul edx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0xe33
mov edi, eax
sub edi, esi
add edi, edx
add edi, ecx
mov ecx, dword [0x45568c]
mov eax, 0x4700d503
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [esp + 0x654]
sub edi, eax
push ecx
mov dword [0x4556a4], edi
call fcn.0042985a
mov ecx, dword [0x558258]
add esp, 4
cmp eax, ecx
jge 0x40cbcf
mov dword [0x55825c], ecx
jmp 0x40cc58
lea edx, [esp + 0x654]
push edx
call fcn.0042985a
add esp, 4
cmp eax, 0x64
jle 0x40cc43
mov esi, dword [0x45568c]
mov eax, dword [0x455698]
imul esi, esi, 0x140f
mov ecx, dword [0x45569c]
imul eax, eax, 0x12b9
add esi, eax
mov eax, 0x903bb8bb
imul ecx
mov eax, dword [0x4556a4]
add edx, ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x736
sub esi, ecx
add esi, eax
lea eax, [edx + esi - 0x5cc]
mov dword [0x455694], eax
mov dword [0x55825c], 0x64
jmp 0x40cc58
lea ecx, [esp + 0x654]
push ecx
call fcn.0042985a
add esp, 4
mov dword [0x55825c], eax
mov ecx, dword [0x4556a8]
mov esi, dword [0x4556a0]
mov eax, 0x6342662b
imul ecx, ecx, 0x14a2
imul dword [0x45569c]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0x12b9
sub ecx, eax
add ecx, edx
mov eax, 0x1cb32649
imul dword [0x455690]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, esi
sub ecx, 0x5cc
push 0
mov dword [0x455690], ecx
call fcn.0042985f
sub eax, dword [0x5694ac]
add esp, 4
cmp eax, 0xa8c0
jl 0x40cd3a
mov esi, dword [0x45568c]
mov ecx, dword [0x455698]
imul esi, esi, 0x140f
imul ecx, ecx, 0x12b9
mov edi, dword [0x4556a4]
add esi, ecx
mov ecx, dword [0x45569c]
mov eax, 0x903bb8bb
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 0xb
imul ecx, ecx, 0x736
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
lea edx, [ecx + esi - 0x5cc]
push 0
mov dword [0x455694], edx
call fcn.0042985f
add esp, 4
xor esi, esi
mov dword [0x5694ac], eax
mov dword [0x558260], esi
jmp 0x40cd40
mov esi, dword [0x558260]
mov ecx, dword [0x4556a8]
mov edi, dword [0x4556a0]
mov eax, 0xcc33a611
imul edi, edi, 0xe33
imul ecx
add edx, ecx
imul ecx, ecx, 0x5cc
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455698]
sub edi, eax
mov eax, 0x5da803a9
imul edx
sar edx, 0xa
add edi, edx
mov ebx, edx
mov edx, dword [0x455694]
mov eax, 0x4700d503
imul edx
sar edx, 9
shr ebx, 0x1f
mov eax, edx
shr eax, 0x1f
add ebx, edi
add eax, edx
sub ebx, eax
mov eax, dword [0x55825c]
sub ebx, ecx
cmp esi, eax
mov dword [0x455698], ebx
jge 0x40ceb3
cmp esi, dword [0x558258]
jge 0x40cde1
push 0
call fcn.0042985f
mov ecx, dword [0x569484]
mov esi, dword [0x558264]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jge 0x40ce1a
mov esi, dword [0x558260]
cmp esi, dword [0x55825c]
jge 0x40ceb3
cmp esi, dword [0x558258]
jl 0x40ceb3
push 0
call fcn.0042985f
sub eax, dword [0x558264]
mov edx, dword [0x569488]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jl 0x40ceb3
mov esi, dword [0x45568c]
mov edi, dword [0x455690]
mov ecx, dword [0x455694]
imul edi, edi, 0x16cb
mov eax, esi
imul eax, eax, 0x15c4
add edi, eax
mov eax, 0x6342662b
imul ecx
imul ecx, ecx, 0x5cc
sar edx, 0xb
mov ebx, edx
add edi, edx
mov eax, 0x6d62dd3b
imul esi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
shr ebx, 0x1f
add ebx, edi
sub ebx, eax
mov eax, dword [0x558260]
cdq
idiv dword [0x558258]
add ebx, ecx
mov dword [0x45569c], ebx
shl edx, 4
mov eax, dword [esp + edx + 0x14]
mov edx, 0x558268
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ce90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042904d
add esp, 0x3648
ret
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042904d
add esp, 0x3648
ret
mov ecx, dword [esp + 0x3654]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
call fcn.0042904d
add esp, 0x3648
ret