Function at 0x40c5d0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3648
call fcn.00429680
mov eax, dword [0x457190]
mov ecx, dword [0x45581c]
mov dword [esp + 0x3644], eax
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [0x455824]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push esi
mov esi, eax
mov eax, 0x6db6db6d
imul ecx
sub edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
mov eax, 0x4bda12f7
imul ecx
mov eax, dword [0x455830]
sar edx, 4
imul eax, eax, 0x35
sub edi, esi
mov esi, dword [0x45582c]
add edi, edx
mov ecx, edx
mov edx, dword [0x455838]
imul edx, edx, 0xd
shr ecx, 0x1f
add ecx, edi
add ecx, edx
add ecx, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x455818]
lea eax, [eax + eax*8]
shl eax, 3
mov esi, eax
sub esi, edx
mov edx, dword [0x455820]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x66666667
imul edx
sar edx, 4
mov dword [str._r_____r____], ecx
imul ecx, ecx, 0x38
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455834]
sub esi, eax
mov eax, dword [esp + 0x3658]
add esi, ecx
sub esi, edx
sub esi, 0x31
test eax, eax
push str.C:WINDOWS_system32driversetc_service5.ini
mov dword [0x455820], esi
push 0x2800
jne 0x40c6d3
lea ecx, [esp + 0xe58]
push ecx
push 0x445e15
push str.ConfigL4
jmp 0x40c6e5
lea edx, [esp + 0xe58]
push edx
push 0x445e15
push str.ConfigL4x
push str.GameType1
call ebp
mov ecx, dword [0x455820]
mov esi, dword [0x45582c]
mov eax, 0x92492493
imul esi, esi, 0x31
imul ecx
add edx, ecx
sar edx, 5
mov eax, ecx
imul eax, eax, 0x32
mov edi, edx
add esi, edx
mov edx, dword [0x45581c]
shr edi, 0x1f
add edi, esi
mov esi, dword [0x455830]
add edi, eax
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0x22
sub edi, eax
add edi, edx
lea eax, [esp + 0xe50]
mov dword [0x45582c], edi
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c750
sub eax, edi
mov dword [esp + 0xc], eax
jne 0x40c778
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00428e41
add esp, 0x3648
ret
mov edi, dword [0x455834]
imul esi, esi, 0x32
mov eax, 0x38e38e39
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
mov ebx, eax
mov eax, 0x5397829d
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455818]
imul edx, edx, 0x31
mov edi, eax
sub edi, ebx
add edi, edx
mov eax, 0x78787879
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edi, edx
lea ecx, [esp + 0xe54]
push ecx
add eax, edi
lea edx, [esp + 0x18]
sub eax, esi
push 0x190
push edx
mov dword [0x455818], eax
call fcn.0040c080
mov esi, eax
add esp, 0xc
cmp esi, 4
jl 0x40cde3
and eax, reloc.WS2_32.dll_closesocket
jns 0x40c800
dec eax
or eax, 0xfffffffc
inc eax
jne 0x40cde3
mov ecx, dword [0x455828]
mov ebx, dword [0x45582c]
lea edx, [ecx + ecx*8]
shl edx, 3
mov edi, edx
mov eax, 0x4bda12f7
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455818]
imul edx, edx, 0x35
sub edi, eax
add edx, dword [0x455830]
mov eax, dword [str._r_____r____]
imul eax, eax, 0x36
add edx, edi
lea edi, [eax + edx - 0x31]
mov eax, esi
cdq
mov esi, 3
and edx, esi
add eax, edx
sar eax, 2
mov dword [0x558118], eax
mov eax, dword [0x569348]
test eax, eax
mov dword [0x455824], edi
jg 0x40c9c6
mov edx, dword [0x45581c]
imul ecx, ecx, 0x22
imul ebx, ebx, 0x31
mov eax, 0x66666667
imul edi, edi, 0x1b
imul edx
sar edx, 4
mov eax, edx
sub ecx, ebx
shr eax, 0x1f
add eax, edx
sub ecx, eax
push str.C:WINDOWS_system32driversetc_service5.ini
add ecx, edi
push 0x800
mov dword [0x455830], ecx
lea ecx, [esp + 0x65c]
push ecx
push 0x445e15
push str.ConfigL1
push str.GameType1
call ebp
lea edx, [esp + 0x654]
push edx
call fcn.00429642
add esp, 4
cmp eax, esi
mov edi, 0x78
jge 0x40c8e1
mov dword [0x569348], esi
jmp 0x40c912
lea eax, [esp + 0x654]
push eax
call fcn.00429642
add esp, 4
cmp eax, edi
jle 0x40c8fd
mov dword [0x569348], edi
jmp 0x40c912
lea ecx, [esp + 0x654]
push ecx
call fcn.00429642
add esp, 4
mov dword [0x569348], eax
mov ebx, dword [0x455828]
mov edx, dword [0x45582c]
imul ebx, ebx, 0x22
mov ecx, dword [0x45581c]
imul edx, edx, 0x31
sub ebx, edx
mov eax, 0x66666667
imul ecx
mov ecx, dword [0x455824]
sar edx, 4
imul ecx, ecx, 0x1b
mov eax, edx
push str.C:WINDOWS_system32driversetc_service5.ini
shr eax, 0x1f
push 0x800
add eax, edx
lea edx, [esp + 0x65c]
push edx
push 0x445e15
sub ebx, eax
push str.ConfigL2
add ebx, ecx
push str.GameType1
mov dword [0x455830], ebx
call ebp
lea eax, [esp + 0x654]
push eax
call fcn.00429642
add esp, 4
cmp eax, esi
jge 0x40c98f
mov dword [0x56934c], esi
jmp 0x40c9c0
lea ecx, [esp + 0x654]
push ecx
call fcn.00429642
add esp, 4
cmp eax, edi
jle 0x40c9ab
mov dword [0x56934c], edi
jmp 0x40c9c0
lea edx, [esp + 0x654]
push edx
call fcn.00429642
add esp, 4
mov dword [0x56934c], eax
mov edi, dword [0x455824]
mov esi, dword [0x455838]
mov ecx, dword [0x45581c]
mov eax, 0x4bda12f7
imul esi
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x4bda12f7
imul ecx
mov eax, esi
imul eax, eax, 0xd
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ebx, edx
add ecx, ebx
mov ebx, dword [str._r_____r____]
sub ecx, eax
mov eax, dword [0x455830]
imul eax, eax, 0x35
add ecx, eax
mov eax, dword [0x55811c]
sub ecx, ebx
add ecx, 0x28
test eax, eax
mov dword [0x45581c], ecx
jg 0x40cb8a
mov eax, 0x4d4873ed
imul ecx, ecx, 0x36
imul esi
sar edx, 4
mov ebx, esi
imul ebx, ebx, 0xffffffcf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x4bda12f7
imul edi
add ebx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x4ec4ec4f
imul esi
push str.C:WINDOWS_system32driversetc_service5.ini
push 0x800
sub ebx, ecx
sar edx, 2
lea ecx, [esp + 0x65c]
push ecx
mov eax, edx
push 0x445e15
shr eax, 0x1f
add ebx, edx
push str.ConfigL3
add eax, ebx
push str.GameType1
mov dword [0x455828], eax
call ebp
mov ecx, dword [0x455828]
mov edx, dword [0x455818]
lea esi, [ecx + edx]
mov eax, 0x4bda12f7
imul esi, esi, 0x36
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x455834]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [esp + 0x654]
sub esi, eax
push ecx
mov dword [0x455834], esi
call fcn.00429642
mov ecx, dword [0x558118]
add esp, 4
cmp eax, ecx
jge 0x40cb0b
mov dword [0x55811c], ecx
jmp 0x40cb8a
lea edx, [esp + 0x654]
push edx
call fcn.00429642
add esp, 4
cmp eax, 0x64
jle 0x40cb75
mov eax, dword [0x455828]
lea eax, [eax + eax*8]
shl eax, 3
mov ecx, eax
mov edi, dword [0x455830]
mov eax, 0x4bda12f7
imul dword [0x45582c]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455818]
sub ecx, eax
imul edx, edx, 0x35
mov eax, dword [str._r_____r____]
imul eax, eax, 0x36
add edx, edi
add edx, ecx
lea ecx, [eax + edx - 0x31]
mov dword [0x455824], ecx
mov dword [0x55811c], 0x64
jmp 0x40cb8a
lea edx, [esp + 0x654]
push edx
call fcn.00429642
add esp, 4
mov dword [0x55811c], eax
mov ecx, dword [0x45582c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, dword [0x455818]
lea edx, [eax + eax*8]
shl edx, 3
mov esi, edx
sub esi, ecx
mov ecx, dword [0x455820]
mov eax, 0x66666667
imul ecx
mov ebp, dword [0x455834]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [str._r_____r____]
imul eax, eax, 0x38
add esi, eax
sub esi, ebp
sub esi, 0x31
push 0
mov dword [0x455820], esi
call fcn.00429647
sub eax, dword [0x569370]
add esp, 4
cmp eax, 0xa8c0
jl 0x40cc63
mov eax, dword [0x455828]
lea ecx, [eax + eax*8]
shl ecx, 3
mov esi, ecx
mov ecx, dword [0x45582c]
mov ebx, dword [0x455830]
mov eax, 0x4bda12f7
imul ecx
mov ecx, dword [0x455818]
sar edx, 4
imul ecx, ecx, 0x35
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x36
sub esi, eax
add ecx, ebx
add ecx, esi
lea eax, [edx + ecx - 0x31]
push 0
mov dword [0x455824], eax
call fcn.00429647
add esp, 4
xor esi, esi
mov dword [0x569370], eax
mov dword [0x558120], esi
jmp 0x40cc69
mov esi, dword [0x558120]
mov ecx, dword [0x455838]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45581c]
mov edi, ecx
imul edx, edx, 0x36
imul edi, edi, 0xffffffcf
sub edi, eax
add edi, edx
mov edx, dword [0x455824]
mov eax, 0x4bda12f7
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x4ec4ec4f
imul ecx
mov eax, dword [0x55811c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edi, edx
add ecx, edi
cmp esi, eax
mov dword [0x455828], ecx
jge 0x40cdc7
cmp esi, dword [0x558118]
jge 0x40ccfc
push 0
call fcn.00429647
sub eax, dword [0x558124]
mov edx, dword [0x569348]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jge 0x40cd37
mov esi, dword [0x558120]
cmp esi, dword [0x55811c]
jge 0x40cdc7
cmp esi, dword [0x558118]
jl 0x40cdc7
push 0
call fcn.00429647
mov ecx, dword [0x56934c]
mov esi, dword [0x558124]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jl 0x40cdc7
mov ecx, dword [0x455820]
mov esi, dword [0x45582c]
mov eax, 0x92492493
imul esi, esi, 0x31
imul ecx
add edx, ecx
imul ecx, ecx, 0x32
sar edx, 5
mov edi, edx
add esi, edx
shr edi, 0x1f
add edi, esi
add edi, ecx
mov ecx, dword [0x45581c]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, dword [0x558120]
cdq
idiv dword [0x558118]
mov ecx, dword [0x455830]
imul ecx, ecx, 0x22
add edi, ecx
mov dword [0x45582c], edi
shl edx, 4
mov eax, dword [esp + edx + 0x14]
mov edx, 0x558128
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40cda4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00428e41
add esp, 0x3648
ret
pop ebx
pop edi
pop esi
mov eax, 9
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00428e41
add esp, 0x3648
ret
mov ecx, dword [esp + 0x3654]
pop ebx
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
call fcn.00428e41
add esp, 0x3648
ret