Function at 0x405fc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4448e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfd8
mov eax, dword [0x458190]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, 0x4b226983
imul dword [0x456824]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x4c8d67b3
imul dword [0x45681c]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x2760f26d
imul dword [0x456824]
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov ebx, dword [0x456838]
mov eax, 0x4b226983
imul ebx
mov esi, dword [0x456830]
sar edx, 0xe
imul esi, esi, 0xd429
mov edi, ebx
mov ebx, edx
imul edi, edi, 0x38bb
shr ebx, 0x1f
add ebx, edx
mov eax, 0x4da3463f
imul dword [0x45681c]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add ebx, edx
add eax, ebx
mov ebx, dword [ebp + 8]
add ecx, edi
add ecx, esi
sub eax, edi
sub eax, ecx
test ebx, ebx
mov dword [str._r_____r____], ecx
lea ecx, [eax + esi + 0xa9e2]
mov dword [0x45681c], ecx
je 0x4064a1
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4060a0
sub eax, edx
mov dword [ebp + 8], eax
je 0x4064a1
mov eax, dword [ebp + 0xc]
push str.C:WINDOWS_system32driversetc_service5.ini
push 0x800
lea edx, [ebp - 0x814]
push edx
push 0x446e15
push eax
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [str._r_____r____]
mov ecx, dword [0x456818]
imul esi, esi, 0xda10
imul ecx, ecx, 0xd429
add esi, ecx
mov ecx, dword [0x45682c]
mov edi, dword [0x456830]
mov eax, 0x4da3463f
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456828]
imul edx, edx, 0x13350
sub esi, eax
add esi, edi
lea esi, [edx + esi - 0xb323]
lea eax, [ebp - 0x814]
lea edx, [eax + 1]
mov dword [0x456824], esi
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406137
sub eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x406465
mov edx, dword [0x456820]
imul ecx, ecx, 0xb323
imul edi, edi, 0x801a
mov esi, edx
mov eax, 0x2760f26d
imul esi, esi, 0xd606
imul edx
sar edx, 0xd
add esi, edx
mov eax, edx
shr eax, 0x1f
add eax, esi
add eax, ecx
mov ecx, dword [0x45681c]
mov esi, eax
mov eax, 0x6aa0ab9b
imul ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ebp - 0x814]
push ecx
sub esi, eax
lea edx, [ebp - 0xfe4]
push 0x1f4
add esi, edi
push edx
mov dword [0x45682c], esi
call fcn.0040c9c0
add esp, 0xc
mov edi, eax
xor esi, esi
jmp 0x4061c0
cmp esi, edi
jge 0x406459
mov ecx, dword [0x456828]
mov eax, 0x4b226983
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0xda10
sub edx, eax
mov dword [ebp + 8], edx
mov eax, 0x4c8d67b3
imul ecx
mov eax, dword [ebp + 8]
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x456818]
imul edx, edx, 0xd308
sub eax, ecx
mov ecx, dword [0x456834]
add eax, edx
mov dword [ebp + 8], eax
mov eax, 0x2760f26d
imul ecx
mov ecx, dword [ebp + 8]
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov dword [0x456834], ecx
mov ecx, dword [ebp + esi*4 - 0xfe4]
push ecx
push ebx
call fcn.0042ad20
add esp, 8
test eax, eax
je 0x406453
mov ecx, dword [0x456834]
mov edi, dword [0x456830]
mov eax, 0x955f5465
imul ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov esi, edi
imul edi, edi, 0xd429
imul esi, esi, 0xd606
mov eax, 0x2dbafdc3
imul ecx
sar edx, 0xd
sub ebx, esi
add ebx, edx
mov ecx, edx
mov edx, dword [0x456818]
imul edx, edx, 0xb323
shr ecx, 0x1f
add ecx, ebx
add ecx, edx
mov eax, 0x7fe60547
imul dword [0x456820]
sar edx, 0xe
add ecx, edx
mov esi, edx
shr esi, 0x1f
add esi, ecx
mov ecx, dword [0x456838]
mov eax, 0x4b226983
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 8], eax
mov ebx, ecx
mov ecx, dword [0x45681c]
imul ebx, ebx, 0x38bb
mov eax, 0x4da3463f
imul ecx
mov ecx, dword [ebp + 8]
sar edx, 0xe
add ecx, edx
mov eax, edx
shr eax, 0x1f
add eax, ecx
mov ecx, dword [str._r_____r____]
sub eax, ebx
sub eax, ecx
lea edx, [eax + edi + 0xa9e2]
mov eax, dword [0x55a22c]
inc eax
cmp eax, 5
mov dword [0x456818], esi
mov dword [0x45681c], edx
mov dword [0x55a22c], eax
jg 0x4063e3
cmp dword [ebp + 0x10], 1
jne 0x4063e3
mov edx, dword [0x45682c]
imul ecx, ecx, 0xd008
imul esi, esi, 0x13350
mov eax, 0x2760f26d
imul edx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, esi
mov esi, dword [0x456820]
mov eax, 0xc0e2caa9
imul esi
add edx, esi
mov esi, dword [0x456834]
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, esi
sub ecx, 0xb323
mov dword [0x456820], ecx
mov ecx, dword [0x456824]
mov eax, 0x4b226983
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x4c8d67b3
imul dword [0x45681c]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x2760f26d
imul ecx
mov eax, dword [0x56a608]
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
add esi, ebx
add esi, edi
mov dword [str._r_____r____], esi
mov edx, dword [eax]
push eax
mov dword [ebp - 4], 0
call dword [edx + 0x30]
mov ecx, dword [0x456824]
mov eax, 0x4b226983
imul ecx
mov ecx, dword [0x456838]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x658cf6d9
imul ecx
sub edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, dword [0x45681c]
imul eax, eax, 0xd308
sub edi, esi
add edi, eax
mov eax, 0x2419bc59
imul ecx
imul ecx, ecx, 0xb323
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edi, edx
add eax, edi
sub eax, ecx
mov dword [0x456828], eax
mov eax, 1
jmp 0x4064a3
inc esi
jmp 0x4061c0
mov esi, dword [0x456824]
mov ecx, dword [0x45682c]
imul ecx, ecx, 0xb323
imul esi, esi, 0x7127
sub esi, ecx
mov ecx, dword [0x45681c]
mov eax, 0xc0e2caa9
imul ecx
mov eax, dword [0x456828]
add edx, ecx
imul eax, eax, 0x801a
sar edx, 0xf
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
add esi, eax
mov dword [0x456830], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042a0b1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret