Function at 0x40cd60
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3648
call fcn.0042a5a0
mov eax, dword [0x458190]
mov dword [esp + 0x3644], eax
push ebp
push esi
push edi
mov esi, dword [0x456824]
mov eax, 0x1315e2c9
imul esi
mov eax, dword [0x456838]
imul eax, eax, 0x8cc35
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 0x637bce79
imul esi
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
sub ecx, eax
imul edx, edx, 0x6a41a
add ecx, edx
mov edx, dword [0x45681c]
mov eax, 0x3b50a35b
imul edx
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45682c]
sub ecx, eax
mov eax, 0x637bce79
imul edx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456818]
mov dword [str._r_____r____], ecx
imul ecx, ecx, 0xa4b0c
imul edx, edx, 0x23d2f
sub ecx, eax
mov esi, dword [0x456834]
add ecx, edx
mov edx, dword [0x456820]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x2681eb59
imul edx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x3658]
sub ecx, esi
sub ecx, 0xd5bac
test eax, eax
push str.C:WINDOWS_system32driversetc_service5.ini
mov dword [0x456820], ecx
push 0x2800
jne 0x40ce66
lea ecx, [esp + 0xe58]
push ecx
push 0x446e15
push str.ConfigL4
jmp 0x40ce78
lea edx, [esp + 0xe58]
push edx
push 0x446e15
push str.ConfigL4x
push str.GameType1
call ebp
mov esi, dword [0x456820]
mov ecx, dword [0x45682c]
mov eax, 0x637bce79
imul ecx, ecx, 0xd5bac
imul esi
sar edx, 0x12
add ecx, edx
mov edi, edx
shr edi, 0x1f
add edi, ecx
mov ecx, dword [0x45681c]
mov eax, 0x72563b0d
imul ecx
sar edx, 0x10
mov ecx, esi
imul ecx, ecx, 0x8a1c3
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
mov ecx, dword [0x456830]
mov edx, ecx
imul edx, edx, 0x58c2a
add edi, edx
lea eax, [esp + 0xe50]
mov dword [0x45682c], edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40cee7
sub eax, edi
mov dword [esp + 0xc], eax
jne 0x40cf0f
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00429d61
add esp, 0x3648
ret
mov edi, dword [0x456834]
imul ecx, ecx, 0x8a1c3
mov eax, 0x4ca85b91
imul edi
mov eax, dword [0x456818]
imul eax, eax, 0xd5bac
push ebx
sar edx, 0x12
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
add ebx, eax
mov eax, 0x72563b0d
imul edi
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x2e259371
imul esi
sub ebx, ecx
sar edx, 0x10
mov ecx, edx
add ebx, edx
lea edx, [esp + 0xe54]
push edx
shr ecx, 0x1f
lea eax, [esp + 0x18]
add ecx, ebx
push 0x190
push eax
mov dword [0x456818], ecx
call fcn.0040c7e0
mov ebx, eax
add esp, 0xc
cmp ebx, 4
jl 0x40d5e0
mov ecx, ebx
and ecx, reloc.WS2_32.dll_closesocket
jns 0x40cf9c
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x40d5e0
mov esi, dword [str._r_____r____]
mov ecx, dword [0x456828]
mov eax, 0x3d63c959
imul dword [0x45682c]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, esi
imul edi, edi, 0xd69d0
sub edi, eax
mov eax, dword [0x456830]
mov edx, ecx
imul edx, edx, 0x23d2f
add edx, eax
mov eax, dword [0x456818]
imul eax, eax, 0x6a41a
add edx, edi
lea edi, [eax + edx - 0xd5bac]
mov eax, ebx
cdq
mov ebx, 3
and edx, ebx
add eax, edx
sar eax, 2
mov dword [0x559118], eax
mov eax, dword [0x56a348]
test eax, eax
mov dword [0x456824], edi
jg 0x40d189
mov eax, dword [0x45682c]
imul edi, edi, 0xfffdd9b2
imul ecx, ecx, 0x58c2a
mov edx, dword [0x45681c]
imul eax, eax, 0xd5bac
sub edi, eax
mov eax, 0x2681eb59
imul edx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
push str.C:WINDOWS_system32driversetc_service5.ini
add eax, edx
sub edi, eax
push 0x800
add edi, ecx
lea ecx, [esp + 0x65c]
push ecx
push 0x446e15
push str.ConfigL1
push str.GameType1
mov dword [0x456830], edi
call ebp
lea edx, [esp + 0x654]
push edx
call fcn.0042a562
add esp, 4
cmp eax, ebx
mov esi, 0x78
jge 0x40d095
mov dword [0x56a348], ebx
jmp 0x40d0c6
lea eax, [esp + 0x654]
push eax
call fcn.0042a562
add esp, 4
cmp eax, esi
jle 0x40d0b1
mov dword [0x56a348], esi
jmp 0x40d0c6
lea ecx, [esp + 0x654]
push ecx
call fcn.0042a562
add esp, 4
mov dword [0x56a348], eax
mov edx, dword [0x45682c]
mov edi, dword [0x456824]
imul edx, edx, 0xd5bac
mov ecx, dword [0x45681c]
imul edi, edi, 0xfffdd9b2
sub edi, edx
mov eax, 0x2681eb59
imul ecx
mov ecx, dword [0x456828]
sar edx, 0x10
imul ecx, ecx, 0x58c2a
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 0x446e15
sub edi, eax
push str.ConfigL2
add edi, ecx
push str.GameType1
mov dword [0x456830], edi
call ebp
lea eax, [esp + 0x654]
push eax
call fcn.0042a562
add esp, 4
cmp eax, ebx
jge 0x40d14c
mov dword [0x56a34c], ebx
jmp 0x40d17d
lea ecx, [esp + 0x654]
push ecx
call fcn.0042a562
add esp, 4
cmp eax, esi
jle 0x40d168
mov dword [0x56a34c], esi
jmp 0x40d17d
lea edx, [esp + 0x654]
push edx
call fcn.0042a562
add esp, 4
mov dword [0x56a34c], eax
mov esi, dword [str._r_____r____]
mov edi, dword [0x456824]
mov ebx, dword [0x456838]
mov ecx, dword [0x45681c]
mov eax, 0x1315e2c9
imul ebx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
mov eax, 0x3d63c959
imul ecx
mov eax, dword [esp + 0x10]
sar edx, 0x11
add eax, edx
mov ecx, edx
shr ecx, 0x1f
add ecx, eax
mov eax, ebx
imul eax, eax, 0x8cc35
sub ecx, eax
mov eax, dword [0x456830]
imul eax, eax, 0x6a41a
add ecx, eax
mov eax, dword [0x55911c]
sub ecx, esi
add ecx, 0x6a5e7
test eax, eax
mov dword [0x45681c], ecx
jg 0x40d37a
mov eax, 0x1315e2c9
imul ecx, ecx, 0x85714
imul edi
sar edx, 0x10
mov esi, ebx
imul esi, esi, 0xfff2a454
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x7464ef13
imul ebx
add esi, ecx
sar edx, 0x12
mov ecx, edx
add esi, edx
mov eax, 0x4d18b8d9
imul ebx
sar edx, 0x11
shr ecx, 0x1f
mov eax, edx
shr eax, 0x1f
add ecx, esi
push str.C:WINDOWS_system32driversetc_service5.ini
add eax, edx
sub ecx, eax
push 0x800
mov dword [0x456828], ecx
lea ecx, [esp + 0x65c]
push ecx
push 0x446e15
push str.ConfigL3
push str.GameType1
call ebp
mov ecx, dword [0x456828]
mov eax, 0x1315e2c9
imul ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456818]
mov esi, ecx
imul edx, edx, 0x85714
imul esi, esi, 0xd69d0
sub esi, eax
add esi, edx
mov edx, dword [0x456834]
mov eax, 0x637bce79
imul edx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x3b50a35b
imul ecx
sar edx, 0x11
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [esp + 0x654]
sub esi, ecx
push edx
mov dword [0x456834], esi
call fcn.0042a562
mov ecx, dword [0x559118]
add esp, 4
cmp eax, ecx
jge 0x40d2eb
mov dword [0x55911c], ecx
jmp 0x40d374
lea eax, [esp + 0x654]
push eax
call fcn.0042a562
add esp, 4
cmp eax, 0x64
jle 0x40d35f
mov esi, dword [str._r_____r____]
mov ebx, dword [0x456830]
mov eax, 0x3d63c959
imul dword [0x45682c]
sar edx, 0x11
mov ecx, esi
imul ecx, ecx, 0xd69d0
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456828]
sub ecx, eax
imul edx, edx, 0x23d2f
mov eax, dword [0x456818]
imul eax, eax, 0x6a41a
add edx, ebx
add edx, ecx
lea ecx, [eax + edx - 0xd5bac]
mov dword [0x456824], ecx
mov dword [0x55911c], 0x64
jmp 0x40d37a
lea edx, [esp + 0x654]
push edx
call fcn.0042a562
add esp, 4
mov dword [0x55911c], eax
mov esi, dword [str._r_____r____]
mov eax, 0x637bce79
imul esi, esi, 0xa4b0c
imul dword [0x45682c]
mov ecx, dword [0x456820]
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x456818]
imul eax, eax, 0x23d2f
mov ebp, dword [0x456834]
add esi, eax
mov eax, 0x2681eb59
imul ecx
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
sub esi, ebp
sub esi, 0xd5bac
push 0
mov dword [0x456820], esi
call fcn.0042a567
sub eax, dword [0x56a370]
add esp, 4
cmp eax, 0xa8c0
jl 0x40d454
mov ecx, dword [0x45682c]
mov esi, dword [str._r_____r____]
mov ebx, dword [0x456830]
imul esi, esi, 0xd69d0
mov eax, 0x3d63c959
imul ecx
mov ecx, dword [0x456828]
sar edx, 0x11
imul ecx, ecx, 0x23d2f
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456818]
imul edx, edx, 0x6a41a
sub esi, eax
add ecx, ebx
add ecx, esi
lea eax, [edx + ecx - 0xd5bac]
push 0
mov dword [0x456824], eax
call fcn.0042a567
add esp, 4
xor esi, esi
mov dword [0x56a370], eax
mov dword [0x559120], esi
jmp 0x40d45a
mov esi, dword [0x559120]
mov ecx, dword [0x456824]
mov eax, 0x1315e2c9
imul ecx
mov eax, dword [0x45681c]
sar edx, 0x10
imul eax, eax, 0x85714
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [0x456838]
mov edi, ecx
imul edi, edi, 0xfff2a454
sub edi, edx
add edi, eax
mov eax, 0x7464ef13
imul ecx
sar edx, 0x12
add edi, edx
mov ebx, edx
mov eax, 0x4d18b8d9
imul ecx
mov eax, dword [0x55911c]
sar edx, 0x11
shr ebx, 0x1f
mov ecx, edx
shr ecx, 0x1f
add ebx, edi
add ecx, edx
sub ebx, ecx
cmp esi, eax
mov dword [0x456828], ebx
jge 0x40d5c4
cmp esi, dword [0x559118]
jge 0x40d4f2
push 0
call fcn.0042a567
sub eax, dword [0x559124]
mov edx, dword [0x56a348]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jge 0x40d52d
mov esi, dword [0x559120]
cmp esi, dword [0x55911c]
jge 0x40d5c4
cmp esi, dword [0x559118]
jl 0x40d5c4
push 0
call fcn.0042a567
mov ecx, dword [0x56a34c]
mov esi, dword [0x559124]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jl 0x40d5c4
mov ecx, dword [0x456820]
mov esi, dword [0x45682c]
mov eax, 0x637bce79
imul esi, esi, 0xd5bac
imul ecx
imul ecx, ecx, 0x8a1c3
sar edx, 0x12
mov edi, edx
add esi, edx
mov edx, dword [0x45681c]
mov eax, 0x72563b0d
imul edx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
shr edi, 0x1f
add edi, esi
sub edi, eax
mov eax, dword [0x559120]
cdq
idiv dword [0x559118]
add edi, ecx
mov ecx, dword [0x456830]
imul ecx, ecx, 0x58c2a
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 0x40d5a1
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00429d61
add esp, 0x3648
ret
pop ebx
pop edi
pop esi
mov eax, 9
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00429d61
add esp, 0x3648
ret
mov ecx, dword [esp + 0x3654]
pop ebx
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
call fcn.00429d61
add esp, 0x3648
ret