Function at 0x416120
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ee90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfd8
mov eax, dword [0x451944]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4508f4]
imul ecx, ecx, 0x185
mov esi, dword [0x4508e8]
mov eax, 0xa61fcc17
imul esi
add edx, esi
mov esi, dword [0x4508dc]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
sub edx, eax
sub edx, dword [0x4508d8]
lea eax, [edx + esi + 0xd7]
mov dword [str._r_____r_____n], eax
mov ebx, dword [ebp + 8]
mov eax, 0x97012e03
imul esi
mov edi, dword [0x4508ec]
imul edi, edi, 0x1a8
add edx, esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edi, edx
mov edx, dword [0x4508e0]
add eax, edi
sub eax, ecx
sub eax, edx
add eax, 0x4f2
test ebx, ebx
mov dword [0x4508d8], eax
je 0x416518
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4161d2
sub eax, edx
mov dword [ebp + 8], eax
je 0x416518
mov edx, dword [ebp + 0xc]
push str.C:WINDOWS_system32driversetc_service5.ini
push 0x800
lea ecx, [ebp - 0x814]
push ecx
push 0x440e1d
push edx
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [0x4508e4]
mov ecx, dword [0x4508e8]
mov eax, edi
imul eax, eax, 0x377
mov esi, dword [0x4508d8]
mov dword [ebp + 8], eax
mov eax, 0x60f25deb
imul ecx
mov ecx, dword [ebp + 8]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0x1a8
sub ecx, eax
add ecx, dword [0x4508f0]
lea ecx, [edx + ecx - 0x15c]
lea eax, [ebp - 0x814]
lea edx, [eax + 1]
mov dword [0x4508e0], ecx
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x416263
sub eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x4164e4
mov eax, 0xb61d7045
imul ecx, ecx, 0x30f
imul esi
mov edi, esi
imul edi, edi, 0x3a7
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, edi
add eax, ecx
mov ecx, dword [0x4508dc]
imul ecx, ecx, 0x315
add eax, ecx
lea edx, [ebp - 0x814]
push edx
mov dword [0x4508e8], eax
lea eax, [ebp - 0xfe4]
push 0x1f4
push eax
call fcn.00403c00
add esp, 0xc
mov edi, eax
xor esi, esi
jmp 0x4162d0
cmp esi, edi
jge 0x4164d8
mov eax, dword [0x4508d4]
mov ecx, dword [0x4508f0]
imul eax, eax, 0x2a4
mov dword [ebp + 8], eax
mov eax, 0x197b05f9
imul ecx
mov eax, dword [ebp + 8]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508e8]
imul edx, edx, 0x1b2
sub eax, ecx
mov ecx, dword [0x4508d8]
add eax, edx
sub eax, ecx
sub eax, 0x163
mov dword [0x4508f0], eax
mov eax, dword [ebp + esi*4 - 0xfe4]
push eax
push ebx
call fcn.00424fa0
add esp, 8
test eax, eax
je 0x4164d2
mov ecx, dword [0x4508f0]
mov edi, dword [0x4508e8]
mov eax, 0x49e28fbb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x73d0e82d
imul edi
sub edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x4508ec]
sub edx, ecx
mov ebx, dword [0x4508dc]
mov ecx, eax
imul eax, eax, 0x1a8
imul ecx, ecx, 0x315
sub edx, ecx
mov ecx, dword [str._r_____r_____n]
mov esi, dword [0x4508f4]
add edx, ecx
imul esi, esi, 0x185
mov ecx, dword [0x4508d4]
lea edx, [ecx + edx - 0x30e]
mov dword [ebp + 8], eax
mov dword [0x4508d4], edx
mov eax, 0x97012e03
imul ebx
mov eax, dword [ebp + 8]
add edx, ebx
sar edx, 8
add eax, edx
mov ecx, edx
mov edx, dword [0x4508e0]
shr ecx, 0x1f
add ecx, eax
mov eax, dword [0x563de4]
sub ecx, esi
sub ecx, edx
add ecx, 0x4f2
inc eax
cmp eax, 5
mov dword [0x4508d8], ecx
mov dword [0x563de4], eax
jg 0x416475
cmp dword [ebp + 0x10], 1
jne 0x416475
mov eax, 0x197b05f9
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 8], eax
mov eax, 0x21d814d3
imul ebx
sub edx, ebx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
sub eax, edx
sub eax, dword [0x4508ec]
mov edx, dword [0x4508f4]
lea ebx, [eax + edx - 0x30e]
mov eax, 0xa61fcc17
imul edi
add edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x562c04]
sub esi, ecx
lea ecx, [esi + ebx + 0xd7]
mov dword [0x4508dc], ebx
mov dword [str._r_____r_____n], ecx
mov edx, dword [eax]
push eax
mov dword [ebp - 4], 0
call dword [edx + 0x30]
mov ecx, dword [0x4508e4]
mov esi, dword [0x4508f4]
mov eax, 0xa8791709
imul esi, esi, 0x30f
imul ecx
add edx, ecx
mov ecx, dword [0x4508e0]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x97012e03
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
sub edi, esi
add ecx, edx
sub edi, ecx
add edi, 0x456
mov dword [0x4508e4], edi
mov eax, 1
jmp 0x41651a
inc esi
jmp 0x4162d0
mov esi, dword [0x4508d8]
mov edi, dword [0x4508e4]
mov ecx, dword [str._r_____r_____n]
imul edi, edi, 0x222
mov eax, 0xde27eb2d
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
imul ecx, ecx, 0x24e
lea edx, [edi + ecx - 0x30e]
mov dword [0x4508ec], edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00424061
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret