Function at 0x410470
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3648
call fcn.00430500
mov eax, dword [0x45e640]
mov dword [esp + 0x3644], eax
push ebx
push ebp
push esi
mov esi, dword [0x45cccc]
mov eax, 0x950cb67f
imul esi
add edx, esi
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
push edi
mov edi, dword [0x45ccd4]
mov eax, 0x1e9f4e3
imul edi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov edx, esi
imul edx, edx, 0x84dd7
sub ebp, ebx
add ebp, edx
mov eax, 0x9baa0995
imul edi
add edx, edi
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov ecx, dword [0x45cce8]
mov edi, dword [0x45ccdc]
imul ecx, ecx, 0x8a702
mov eax, 0x9baa0995
imul esi
add edx, esi
sar edx, 0x13
mov esi, dword [0x45ccd8]
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
add eax, ebp
mov edx, edi
imul edx, edx, 0x8276a
add edx, eax
mov dword [str._r_____r____], edx
mov eax, 0x10449d67
imul esi
imul esi, esi, 0xd2812
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccd0]
mov ebx, eax
mov eax, 0x60d8eff
imul edx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x9baa0995
imul edi
add edx, edi
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccc8]
add ebx, esi
sub ebx, eax
imul edx, edx, 0x8276a
add ebx, edx
sub ebx, dword [0x45cce4]
lea eax, [ebx + ecx - 0x3ef21]
mov dword [0x45ccd0], eax
mov eax, dword [esp + 0x365c]
test eax, eax
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
push 0x2800
jne 0x4105b0
lea ecx, [esp + 0xe5c]
push ecx
push 0x44ce59
push str.ConfigL4
jmp 0x4105c2
lea edx, [esp + 0xe5c]
push edx
push 0x44ce59
push str.ConfigL4x
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [0x45cccc]
mov esi, dword [0x45ccd0]
mov eax, dword [0x45ccdc]
mov ecx, dword [0x45cce4]
imul eax, eax, 0x3ef21
lea ebx, [esi + edi]
imul ebx, ebx, 0x6dec5
add ebx, eax
mov eax, 0x1e9f4e3
imul ecx
sar edx, 0xc
add ebx, edx
mov ebp, edx
mov eax, 0x9baa0995
imul ecx
add edx, ecx
sar edx, 0x13
shr ebp, 0x1f
add ebp, ebx
add ebp, edx
mov ebx, edx
mov eax, 0x3ecaa423
imul edi
mov edi, dword [0x45cce0]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
imul edx, edx, 0xa0dd9
shr ebx, 0x1f
add ebx, ebp
sub ebx, eax
add ebx, edx
lea eax, [esp + 0xe54]
mov dword [0x45ccdc], ebx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410650
sub eax, ebx
mov dword [esp + 0x10], eax
jne 0x410679
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042fcc1
add esp, 0x3648
ret
mov ebx, dword [0x45ccc8]
imul edi, edi, 0x1c83d
imul ebx, ebx, 0x3ef21
mov eax, 0x10449d67
imul esi
sar edx, 0xe
add ebx, edx
mov ebp, edx
mov eax, 0x3da8152f
imul esi
sar edx, 0x11
shr ebp, 0x1f
add ebp, ebx
mov ebx, edx
add ebp, edx
mov eax, 0x3ecaa423
imul ecx
sar edx, 0x11
mov eax, edx
shr ebx, 0x1f
shr eax, 0x1f
add eax, edx
add ebx, ebp
add ebx, edi
sub ebx, eax
mov eax, 0xcbb2b9d
imul esi
sar edx, 0xf
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 [0x45ccc8], ecx
call fcn.0040fd50
mov ebp, eax
add esp, 0xc
cmp ebp, 4
jl 0x410ebf
mov ecx, ebp
and ecx, reloc.WS2_32.dll_closesocket
jns 0x410713
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x410ebf
mov esi, dword [0x45ccdc]
mov ecx, dword [str._r_____r____]
mov ebx, dword [0x45ccd8]
mov eax, 0x69f239fb
imul esi
sar edx, 0x10
lea edi, [ebx + ecx]
imul edi, edi, 0x8276a
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x1e9f4e3
imul esi
sar edx, 0xc
add edi, edx
mov eax, edx
shr eax, 0x1f
add eax, edi
mov edx, ecx
mov ecx, dword [0x45cce0]
imul edx, edx, 0x85c24
mov edi, esi
imul edi, edi, 0x84dd7
add edx, ecx
add edx, eax
lea edi, [edi + edx - 0x3ef21]
mov eax, ebp
cdq
mov ebp, 3
and edx, ebp
add eax, edx
sar eax, 2
mov dword [0x55f5d8], eax
mov eax, dword [0x570808]
test eax, eax
mov dword [0x45ccd4], edi
jg 0x410980
mov ecx, dword [0x45cce8]
imul esi, esi, 0x3ef21
imul edi, edi, 0x8a702
mov eax, dword [0x45ccd0]
imul ebx, ebx, 0xa0dd9
add eax, ecx
imul eax, eax, 0x54963
sub eax, esi
mov dword [esp + 0x10], eax
mov eax, 0x950cb67f
imul ecx
mov eax, dword [esp + 0x10]
add edx, ecx
mov ecx, dword [0x45cccc]
sar edx, 0x12
mov esi, edx
add eax, edx
shr esi, 0x1f
add esi, eax
mov eax, 0x60d8eff
imul ecx
sar edx, 0xd
mov ecx, edx
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
shr ecx, 0x1f
push 0x800
add ecx, edx
sub esi, ecx
lea edx, [esp + 0x65c]
push edx
sub esi, edi
push 0x44ce59
add esi, ebx
push str.ConfigL1
mov dword [0x45cce0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.GameType1
call esi
lea eax, [esp + 0x654]
push eax
call fcn.004304c2
add esp, 4
cmp eax, ebp
mov edi, 0x78
jge 0x410853
mov dword [0x570808], ebp
jmp 0x410884
lea ecx, [esp + 0x654]
push ecx
call fcn.004304c2
add esp, 4
cmp eax, edi
jle 0x41086f
mov dword [0x570808], edi
jmp 0x410884
lea edx, [esp + 0x654]
push edx
call fcn.004304c2
add esp, 4
mov dword [0x570808], eax
mov ecx, dword [0x45cce8]
mov eax, dword [0x45ccd0]
mov edx, dword [0x45ccdc]
lea ebx, [eax + ecx]
imul edx, edx, 0x3ef21
imul ebx, ebx, 0x54963
sub ebx, edx
mov eax, 0x950cb67f
imul ecx
add edx, ecx
mov ecx, dword [0x45cccc]
sar edx, 0x12
add ebx, edx
mov eax, edx
shr eax, 0x1f
add eax, ebx
mov ebx, eax
mov eax, 0x60d8eff
imul ecx
mov ecx, dword [0x45ccd4]
sar edx, 0xd
imul ecx, ecx, 0x8a702
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccd8]
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
imul edx, edx, 0xa0dd9
sub ebx, eax
push 0x800
lea eax, [esp + 0x65c]
push eax
push 0x44ce59
sub ebx, ecx
push str.ConfigL2
add ebx, edx
push str.GameType1
mov dword [0x45cce0], ebx
call esi
lea ecx, [esp + 0x654]
push ecx
call fcn.004304c2
add esp, 4
cmp eax, ebp
jge 0x410937
mov dword [0x57080c], ebp
jmp 0x410968
lea edx, [esp + 0x654]
push edx
call fcn.004304c2
add esp, 4
cmp eax, edi
jle 0x410953
mov dword [0x57080c], edi
jmp 0x410968
lea eax, [esp + 0x654]
push eax
call fcn.004304c2
add esp, 4
mov dword [0x57080c], eax
mov edi, dword [0x45ccd4]
mov esi, dword [0x45ccdc]
mov ebx, dword [0x45ccd8]
mov ecx, dword [0x45cce0]
mov eax, 0x1e9f4e3
imul edi
mov edi, dword [0x45cce4]
sar edx, 0xc
imul edi, edi, 0x3ef21
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov edx, dword [0x45cccc]
mov eax, 0x69f239fb
imul edx
sar edx, 0x10
add edi, edx
mov eax, edx
shr eax, 0x1f
add eax, edi
mov edx, ecx
imul edx, edx, 0x84dd7
add eax, edx
mov edi, eax
mov eax, 0x3ecaa423
imul dword [0x45ccd4]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add edi, edx
add eax, edi
mov edi, dword [0x45cce8]
mov edx, edi
imul edx, edx, 0x8a702
sub eax, edx
sub eax, dword [str._r_____r____]
lea eax, [eax + ebp + 0x54963]
mov dword [0x45cccc], eax
mov eax, dword [0x55f5dc]
test eax, eax
jg 0x410be8
mov eax, 0x69f239fb
imul ecx
imul ecx, ecx, 0x26a94
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, edi
mov ebx, eax
imul esi, esi, 0x3ef21
sub ebx, esi
add ebx, ecx
mov ecx, dword [0x45ccc8]
mov eax, 0x3da8152f
imul ecx, ecx, 0x85c24
imul edi
sar edx, 0x11
mov eax, edx
add ebx, ecx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x76595943
imul edi
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
sar edx, 0x12
push 0x800
mov ecx, edx
add ebx, edx
lea edx, [esp + 0x65c]
push edx
shr ecx, 0x1f
push 0x44ce59
add ecx, ebx
push str.ConfigL3
sub ecx, ebp
push str.GameType1
mov dword [0x45ccd8], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x45ccd4]
mov ecx, dword [0x45ccc8]
lea esi, [ecx + eax]
mov ecx, dword [0x45ccd8]
imul esi, esi, 0x26a94
mov eax, 0x950cb67f
imul ecx
add edx, ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x1e9f4e3
imul ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [str._r_____r____]
mov edx, ecx
imul edx, edx, 0x85c24
add esi, edx
mov eax, 0x60d8eff
imul ecx
mov ecx, dword [0x45cce4]
sar edx, 0xd
add esi, edx
mov edi, edx
mov eax, 0x9baa0995
imul ecx
add edx, ecx
sar edx, 0x13
mov eax, edx
shr edi, 0x1f
shr eax, 0x1f
add edi, esi
add eax, edx
sub edi, eax
mov dword [0x45cce4], edi
lea ecx, [esp + 0x654]
push ecx
call fcn.004304c2
mov ecx, dword [0x55f5d8]
add esp, 4
cmp eax, ecx
jge 0x410b3b
mov dword [0x55f5dc], ecx
jmp 0x410bd6
lea edx, [esp + 0x654]
push edx
call fcn.004304c2
add esp, 4
cmp eax, 0x64
jle 0x410bc1
mov esi, dword [0x45ccdc]
mov ecx, dword [str._r_____r____]
mov ebx, dword [0x45ccd8]
mov eax, 0x69f239fb
imul esi
lea edi, [ebx + ecx]
imul ecx, ecx, 0x85c24
sar edx, 0x10
imul edi, edi, 0x8276a
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, dword [0x45cce0]
sub edi, eax
mov eax, 0x1e9f4e3
imul esi
sar edx, 0xc
add edi, edx
mov eax, edx
mov edx, esi
imul edx, edx, 0x84dd7
shr eax, 0x1f
add eax, edi
add ecx, ebp
add ecx, eax
lea eax, [edx + ecx - 0x3ef21]
mov dword [0x45ccd4], eax
mov dword [0x55f5dc], 0x64
jmp 0x410be2
lea ecx, [esp + 0x654]
push ecx
call fcn.004304c2
add esp, 4
mov dword [0x55f5dc], eax
mov esi, dword [0x45ccdc]
mov ebx, dword [0x45ccd8]
mov edi, dword [0x45cce8]
mov ecx, dword [0x45ccd0]
imul edi, edi, 0x8a702
mov eax, 0x10449d67
imul ebx
imul ebx, ebx, 0xd2812
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, 0x60d8eff
imul ecx
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x9baa0995
imul esi
sub ebp, ecx
mov ecx, dword [0x45ccc8]
add edx, esi
imul ecx, ecx, 0x8276a
sar edx, 0x13
mov eax, edx
add ebp, ebx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, dword [0x45cce4]
add ebp, ecx
add ebp, edi
sub ebp, eax
sub ebp, 0x3ef21
push 0
mov dword [0x45ccd0], ebp
call fcn.004304c7
sub eax, dword [0x570830]
add esp, 4
cmp eax, 0xa8c0
jl 0x410cee
mov ecx, dword [str._r_____r____]
mov edx, dword [0x45ccd8]
mov esi, dword [0x45ccdc]
lea edi, [edx + ecx]
imul ecx, ecx, 0x85c24
mov eax, 0x69f239fb
imul edi, edi, 0x8276a
imul esi
mov ebx, dword [0x45cce0]
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x1e9f4e3
imul esi
imul esi, esi, 0x84dd7
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edi, edx
add ecx, ebx
add eax, edi
add ecx, eax
lea ecx, [esi + ecx - 0x3ef21]
push 0
mov dword [0x45ccd4], ecx
call fcn.004304c7
add esp, 4
xor edi, edi
mov dword [0x570830], eax
mov dword [0x55f5e0], edi
jmp 0x410cf4
mov edi, dword [0x55f5e0]
mov ecx, dword [0x45cce0]
mov esi, dword [0x45cce8]
mov eax, 0x69f239fb
imul ecx
imul ecx, ecx, 0x26a94
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov ebx, esi
imul ebx, ebx, 0x3ef21
sub ebp, ebx
add ebp, ecx
mov ecx, dword [0x45ccc8]
imul ecx, ecx, 0x85c24
add ebp, ecx
mov ecx, dword [0x45ccd4]
mov eax, 0x1e9f4e3
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x3da8152f
imul esi
sar edx, 0x11
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x76595943
imul esi
sar edx, 0x12
sub ebp, ecx
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
mov dword [0x45ccd8], eax
cmp edi, dword [0x55f5dc]
jge 0x410ea3
cmp edi, dword [0x55f5d8]
jge 0x410db0
push 0
call fcn.004304c7
mov ecx, dword [0x570808]
mov esi, dword [0x55f5e4]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jge 0x410de9
mov edi, dword [0x55f5e0]
cmp edi, dword [0x55f5dc]
jge 0x410ea3
cmp edi, dword [0x55f5d8]
jl 0x410ea3
push 0
call fcn.004304c7
sub eax, dword [0x55f5e4]
mov edx, dword [0x57080c]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jl 0x410ea3
mov esi, dword [0x45cccc]
mov eax, dword [0x45ccd0]
mov ecx, dword [0x45ccdc]
lea edi, [eax + esi]
imul ecx, ecx, 0x3ef21
imul edi, edi, 0x6dec5
add edi, ecx
mov ecx, dword [0x45cce4]
mov eax, 0x1e9f4e3
imul ecx
sar edx, 0xc
add edi, edx
mov ebx, edx
mov eax, 0x9baa0995
imul ecx
add edx, ecx
sar edx, 0x13
mov ecx, edx
shr ebx, 0x1f
add ebx, edi
add ebx, edx
mov eax, 0x3ecaa423
imul esi
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cce0]
imul edx, edx, 0xa0dd9
shr ecx, 0x1f
add ecx, ebx
sub ecx, eax
mov eax, dword [0x55f5e0]
add ecx, edx
cdq
idiv dword [0x55f5d8]
mov dword [0x45ccdc], ecx
mov ecx, 0x55f5e8
shl edx, 4
mov eax, dword [esp + edx + 0x14]
sub ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x410e80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042fcc1
add esp, 0x3648
ret
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x3644]
call fcn.0042fcc1
add esp, 0x3648
ret
mov ecx, dword [esp + 0x3654]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
call fcn.0042fcc1
add esp, 0x3648
ret