Function at 0x410520
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x364c
call fcn.004305f0
mov eax, dword [0x45e640]
mov dword [esp + 0x3648], eax
push ebx
push ebp
push esi
mov esi, dword [0x45ccd4]
push edi
mov edi, dword [0x45cccc]
mov eax, 0x98dd629f
imul esi
add edx, esi
sar edx, 0xf
mov ebx, edx
mov eax, edi
imul eax, eax, 0xd3c7
shr ebx, 0x1f
add ebx, edx
add ebx, eax
mov eax, 0x61494a93
imul esi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x61494a93
imul edi
sar edx, 0xf
mov esi, edx
add ebx, edx
shr esi, 0x1f
mov ecx, dword [0x45cce8]
add esi, ebx
imul ecx, ecx, 0xdaea
mov ebx, dword [0x45ccdc]
mov edx, ebx
imul edx, edx, 0xd082
add esi, edx
mov eax, 0x5cb3b92f
imul edi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
mov dword [str._r_____r____], esi
mov esi, dword [0x45ccd8]
mov eax, 0x5134ce4f
imul esi
imul esi, esi, 0x150d2
sar edx, 0xd
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x61494a93
imul ebx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccc8]
imul edx, edx, 0xd082
add edi, esi
sub edi, eax
add edi, edx
mov edx, dword [0x45ccd0]
mov eax, 0x79b0bfed
imul edx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cce4]
sub edi, eax
mov eax, dword [esp + 0x3660]
sub edi, edx
lea ecx, [edi + ecx - 0x64e1]
mov dword [0x45ccd0], ecx
test eax, eax
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
push 0x2800
jne 0x410657
lea edx, [esp + 0xe60]
push edx
push 0x44ce59
push str.ConfigL4
jmp 0x410669
lea eax, [esp + 0xe60]
push eax
push 0x44ce59
push str.ConfigL4x
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [0x45cccc]
mov ecx, dword [0x45ccd0]
mov edx, dword [0x45ccdc]
mov esi, dword [0x45cce4]
imul edx, edx, 0x64e1
lea ebx, [ecx + edi]
imul ebx, ebx, 0xb0bd
add ebx, edx
mov eax, 0x98dd629f
imul esi
add edx, esi
sar edx, 0xf
add ebx, edx
mov ebp, edx
mov eax, 0x61494a93
imul esi
sar edx, 0xf
shr ebp, 0x1f
add ebp, ebx
add ebp, edx
mov ebx, edx
mov eax, 0x4e93cfed
imul edi
mov edi, dword [0x45cce0]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
imul edx, edx, 0x10171
shr ebx, 0x1f
add ebx, ebp
sub ebx, eax
add ebx, edx
lea eax, [esp + 0xe58]
mov dword [0x45ccdc], ebx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4106f8
sub eax, ebx
mov dword [esp + 0x14], eax
jne 0x410721
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3648]
call fcn.0042fdb1
add esp, 0x364c
ret
mov ebx, dword [0x45ccc8]
imul edi, edi, 0x2a2d
imul ebx, ebx, 0x64e1
mov eax, 0x5134ce4f
imul ecx
sar edx, 0xd
add ebx, edx
mov ebp, edx
mov eax, 0x9aba81d9
imul ecx
add edx, ecx
sar edx, 0xf
shr ebp, 0x1f
add ebp, ebx
mov ebx, edx
add ebp, edx
mov eax, 0x4e93cfed
imul esi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
shr ebx, 0x1f
add ebx, ebp
sub ebx, eax
mov eax, 0x1fd2221d
imul ecx
sar edx, 0xd
add ebx, edi
mov ecx, edx
add ebx, edx
lea edx, [esp + 0xe58]
push edx
shr ecx, 0x1f
lea eax, [esp + 0x1c]
add ecx, ebx
push 0x190
push eax
mov dword [0x45ccc8], ecx
call fcn.0040fdf0
mov ecx, eax
add esp, 0xc
cmp ecx, 4
jl 0x410f77
mov edx, ecx
and edx, reloc.WS2_32.dll_closesocket
jns 0x4107bd
dec edx
or edx, 0xfffffffc
inc edx
jne 0x410f77
mov esi, dword [0x45ccdc]
mov edi, dword [str._r_____r____]
mov ebx, dword [0x45ccd8]
mov eax, 0x98dd629f
imul esi
lea ebp, [ebx + edi]
imul edi, edi, 0xd65c
imul ebp, ebp, 0xd082
add edx, esi
sar edx, 0xf
add ebp, edx
mov eax, edx
shr eax, 0x1f
add eax, ebp
add eax, edi
mov edx, esi
imul edx, edx, 0xd3c7
add eax, edx
mov ebp, eax
mov eax, 0x8891a35
imul esi
mov edi, dword [0x45cce0]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [0x55f5d8], eax
mov eax, dword [0x570808]
test eax, eax
lea ebp, [edi + ebp - 0x64e1]
mov dword [0x45ccd4], ebp
jg 0x410a23
mov ecx, dword [0x45cce8]
imul esi, esi, 0x64e1
imul ebp, ebp, 0xdaea
mov edx, dword [0x45ccd0]
imul ebx, ebx, 0x10171
lea edi, [edx + ecx]
imul edi, edi, 0x86a3
mov eax, 0x5cb3b92f
imul ecx
mov ecx, dword [0x45cccc]
sub edi, esi
sar edx, 0xe
mov esi, edx
sub edi, ebp
add edi, edx
mov eax, 0x79b0bfed
imul ecx
sar edx, 0xe
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
shr esi, 0x1f
mov eax, edx
push 0x800
shr eax, 0x1f
add esi, edi
lea ecx, [esp + 0x660]
push ecx
add eax, edx
sub esi, eax
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 edx, [esp + 0x658]
push edx
call fcn.004305b2
mov edi, 3
add esp, 4
cmp eax, edi
mov ebx, 0x78
jge 0x4108f8
mov dword [0x570808], edi
jmp 0x410929
lea eax, [esp + 0x658]
push eax
call fcn.004305b2
add esp, 4
cmp eax, ebx
jle 0x410914
mov dword [0x570808], ebx
jmp 0x410929
lea ecx, [esp + 0x658]
push ecx
call fcn.004305b2
add esp, 4
mov dword [0x570808], eax
mov ecx, dword [0x45cce8]
mov edx, dword [0x45ccd0]
mov eax, dword [0x45ccdc]
lea ebp, [edx + ecx]
imul eax, eax, 0x64e1
mov edx, dword [0x45ccd4]
imul ebp, ebp, 0x86a3
sub ebp, eax
imul edx, edx, 0xdaea
sub ebp, edx
mov eax, 0x5cb3b92f
imul ecx
mov ecx, dword [0x45cccc]
sar edx, 0xe
add ebp, edx
mov eax, edx
shr eax, 0x1f
add eax, ebp
mov ebp, eax
mov eax, 0x79b0bfed
imul ecx
mov ecx, dword [0x45ccd8]
sar edx, 0xe
imul ecx, ecx, 0x10171
mov eax, edx
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
shr eax, 0x1f
push 0x800
add eax, edx
lea edx, [esp + 0x660]
push edx
push 0x44ce59
sub ebp, eax
push str.ConfigL2
add ebp, ecx
push str.GameType1
mov dword [0x45cce0], ebp
call esi
lea eax, [esp + 0x658]
push eax
call fcn.004305b2
add esp, 4
cmp eax, edi
jge 0x4109da
mov dword [0x57080c], edi
jmp 0x410a0b
lea ecx, [esp + 0x658]
push ecx
call fcn.004305b2
add esp, 4
cmp eax, ebx
jle 0x4109f6
mov dword [0x57080c], ebx
jmp 0x410a0b
lea edx, [esp + 0x658]
push edx
call fcn.004305b2
add esp, 4
mov dword [0x57080c], eax
mov ebp, dword [0x45ccd4]
mov esi, dword [0x45ccdc]
mov ebx, dword [0x45ccd8]
mov edi, dword [0x45cce0]
mov ecx, dword [0x45cce8]
mov eax, 0x98dd629f
imul ebp
add edx, ebp
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [0x45cce4]
imul eax, eax, 0x64e1
mov edx, ecx
imul edx, edx, 0xdaea
sub eax, edx
mov edx, edi
imul edx, edx, 0xd3c7
add eax, edx
mov dword [esp + 0x10], eax
mov eax, 0x4e93cfed
imul ebp
mov eax, dword [esp + 0x10]
sar edx, 0xe
add eax, edx
mov ebp, edx
mov edx, dword [0x45cccc]
shr ebp, 0x1f
add ebp, eax
mov eax, 0x8891a35
imul edx
sar edx, 9
mov eax, edx
add ebp, edx
mov edx, dword [str._r_____r____]
shr eax, 0x1f
add eax, ebp
mov ebp, dword [esp + 0x14]
sub eax, edx
lea edx, [eax + ebp + 0x86a3]
mov eax, dword [0x55f5dc]
test eax, eax
mov dword [0x45cccc], edx
jg 0x410c9c
mov eax, 0x95af2ed3
imul ecx
add edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccc8]
mov esi, ecx
imul edx, edx, 0xd65c
imul esi, esi, 0x64e1
mov ebx, eax
sub ebx, esi
add ebx, edx
mov eax, 0x9aba81d9
imul ecx
add edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x8891a35
imul edi
imul edi, edi, 0x3bfc
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
sar edx, 9
push 0x800
mov ecx, edx
add ebx, edx
shr ecx, 0x1f
lea edx, [esp + 0x660]
push edx
add ecx, ebx
push 0x44ce59
add ecx, edi
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 edi, [ecx + eax]
mov ecx, dword [0x45ccd8]
imul edi, edi, 0x3bfc
mov esi, dword [str._r_____r____]
mov eax, 0x98dd629f
imul ecx
add edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov edx, esi
imul edx, edx, 0xd65c
add edi, edx
mov edx, dword [0x45cce4]
mov eax, 0x61494a93
imul edx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x5cb3b92f
imul ecx
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x79b0bfed
imul esi
sar edx, 0xe
sub edi, ecx
mov eax, edx
shr eax, 0x1f
add edi, edx
add eax, edi
mov dword [0x45cce4], eax
lea ecx, [esp + 0x658]
push ecx
call fcn.004305b2
mov ecx, dword [0x55f5d8]
add esp, 4
cmp eax, ecx
jge 0x410bed
mov dword [0x55f5dc], ecx
jmp 0x410c8a
lea edx, [esp + 0x658]
push edx
call fcn.004305b2
add esp, 4
cmp eax, 0x64
jle 0x410c75
mov esi, dword [0x45ccdc]
mov ecx, dword [str._r_____r____]
mov ebx, dword [0x45ccd8]
mov eax, 0x98dd629f
imul esi
lea edi, [ebx + ecx]
imul ecx, ecx, 0xd65c
imul edi, edi, 0xd082
add edx, esi
sar edx, 0xf
mov eax, esi
imul eax, eax, 0xd3c7
mov ebp, edx
add edi, edx
shr ebp, 0x1f
add ebp, edi
add ebp, ecx
add ebp, eax
mov eax, 0x8891a35
imul esi
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45cce0]
sub ebp, ecx
lea eax, [edx + ebp - 0x64e1]
mov dword [0x45ccd4], eax
mov dword [0x55f5dc], 0x64
jmp 0x410c96
lea ecx, [esp + 0x658]
push ecx
call fcn.004305b2
add esp, 4
mov dword [0x55f5dc], eax
mov esi, dword [0x45ccdc]
mov ebx, dword [0x45ccd8]
mov ecx, dword [0x45cce8]
mov eax, 0x5134ce4f
imul ecx, ecx, 0xdaea
imul ebx
imul ebx, ebx, 0x150d2
sar edx, 0xd
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, ecx
mov ecx, dword [0x45ccc8]
mov eax, 0x61494a93
imul ecx, ecx, 0xd082
imul esi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, dword [0x45cce4]
add edi, ebx
sub edi, eax
add edi, ecx
mov ecx, dword [0x45ccd0]
mov eax, 0x79b0bfed
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
sub edi, ebp
sub edi, 0x64e1
push 0
mov dword [0x45ccd0], edi
call fcn.004305b7
sub eax, dword [0x570830]
add esp, 4
cmp eax, 0xa8c0
jl 0x410da6
mov esi, dword [0x45ccdc]
mov ecx, dword [str._r_____r____]
mov edx, dword [0x45ccd8]
lea edi, [edx + ecx]
imul ecx, ecx, 0xd65c
mov eax, 0x98dd629f
imul edi, edi, 0xd082
imul esi
add edx, esi
sar edx, 0xf
mov eax, esi
imul eax, eax, 0xd3c7
mov ebx, edx
add edi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, ecx
add ebx, eax
mov eax, 0x8891a35
imul esi
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45cce0]
sub ebx, ecx
lea eax, [ebx + edx - 0x64e1]
push 0
mov dword [0x45ccd4], eax
call fcn.004305b7
add esp, 4
xor edi, edi
mov dword [0x570830], eax
mov dword [0x55f5e0], edi
jmp 0x410dac
mov edi, dword [0x55f5e0]
mov ecx, dword [0x45cce8]
mov eax, 0x95af2ed3
imul ecx
add edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccc8]
mov esi, ecx
imul edx, edx, 0xd65c
mov ebx, eax
imul esi, esi, 0x64e1
sub ebx, esi
mov esi, dword [0x45ccd4]
add ebx, edx
mov eax, 0x98dd629f
imul esi
add edx, esi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x9aba81d9
imul ecx
add edx, ecx
sar edx, 0xf
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ebx, ecx
mov ecx, dword [0x45cce0]
mov eax, 0x8891a35
imul ecx
imul ecx, ecx, 0x3bfc
sar edx, 9
mov eax, edx
shr eax, 0x1f
add ebx, edx
add eax, ebx
add eax, ecx
mov dword [0x45ccd8], eax
cmp edi, dword [0x55f5dc]
jge 0x410f5b
cmp edi, dword [0x55f5d8]
jge 0x410e6e
push 0
call fcn.004305b7
mov ecx, dword [0x570808]
mov esi, dword [0x55f5e4]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jge 0x410ea7
mov edi, dword [0x55f5e0]
cmp edi, dword [0x55f5dc]
jge 0x410f5b
cmp edi, dword [0x55f5d8]
jl 0x410f5b
push 0
call fcn.004305b7
sub eax, dword [0x55f5e4]
mov edx, dword [0x57080c]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jl 0x410f5b
mov esi, dword [0x45cccc]
mov eax, dword [0x45ccd0]
mov ecx, dword [0x45ccdc]
lea edi, [eax + esi]
imul ecx, ecx, 0x64e1
imul edi, edi, 0xb0bd
add edi, ecx
mov ecx, dword [0x45cce4]
mov eax, 0x98dd629f
imul ecx
add edx, ecx
sar edx, 0xf
add edi, edx
mov ebx, edx
mov eax, 0x61494a93
imul ecx
sar edx, 0xf
mov ecx, edx
shr ebx, 0x1f
add ebx, edi
add ebx, edx
mov eax, 0x4e93cfed
imul esi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cce0]
imul edx, edx, 0x10171
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 + 0x18]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x410f38
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3648]
call fcn.0042fdb1
add esp, 0x364c
ret
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x3648]
call fcn.0042fdb1
add esp, 0x364c
ret
mov ecx, dword [esp + 0x3658]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
call fcn.0042fdb1
add esp, 0x364c
ret