Function at 0x4060f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfdc
mov eax, dword [0x458190]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, 0x4c8f8d29
imul dword [0x456824]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x30c30c31
imul dword [0x456824]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x36b45a9b
imul dword [0x45681c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov ebx, dword [0x456838]
mov eax, 0x4c8f8d29
imul ebx
sar edx, 8
mov esi, ebx
mov ebx, edx
imul esi, esi, 0x235
shr ebx, 0x1f
add ebx, edx
mov eax, 0xe1fc780f
imul dword [0x45681c]
mov eax, dword [0x45681c]
mov edi, dword [0x456830]
add edx, eax
imul edi, edi, 0x1aa
sar edx, 9
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, esi
sub eax, ecx
test ebx, ebx
mov dword [str._r_____r____], ecx
lea ecx, [eax + edi + 0x1e7]
mov dword [0x45681c], ecx
je 0x4065da
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4061d5
sub eax, edx
mov dword [ebp + 8], eax
je 0x4065da
mov eax, dword [ebp + 0xc]
push str.C:WINDOWS_system32driversetc_service5.ini
push 0x800
lea edx, [ebp - 0x814]
push edx
push 0x446e9d
push eax
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [0x45682c]
mov esi, dword [str._r_____r____]
mov eax, 0xe1fc780f
imul esi, esi, 0x358
imul ecx
mov edi, dword [0x456830]
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456818]
sub esi, eax
imul edx, edx, 0x1aa
mov eax, dword [0x456828]
imul eax, eax, 0x87
add edx, edi
add edx, esi
lea esi, [eax + edx - 0x344]
lea eax, [ebp - 0x814]
lea edx, [eax + 1]
mov dword [0x456824], esi
mov dword [ebp + 8], edx
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406270
sub eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x4065a3
mov esi, dword [0x456820]
imul ecx, ecx, 0x344
imul edi, edi, 0x16a
mov eax, 0x30c30c31
imul esi
imul esi, esi, 0x257
sar edx, 7
add ecx, edx
mov eax, edx
shr eax, 0x1f
add eax, ecx
mov ecx, dword [0x45681c]
add eax, esi
add eax, edi
mov dword [ebp + 8], eax
mov eax, 0xf2b9d649
imul ecx
add edx, ecx
mov ecx, dword [ebp + 8]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov dword [0x45682c], ecx
lea ecx, [ebp - 0x814]
push ecx
lea edx, [ebp - 0xfe8]
push 0x1f4
push edx
call fcn.0040cb60
add esp, 0xc
mov dword [ebp + 8], eax
xor esi, esi
lea esp, [esp]
cmp esi, dword [ebp + 8]
jge 0x406597
mov ecx, dword [0x456828]
mov eax, 0x4c8f8d29
imul ecx
sar edx, 8
mov edi, ecx
mov eax, edx
imul edi, edi, 0x358
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456834]
sub edi, eax
mov eax, 0x30c30c31
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x36b45a9b
imul ecx
mov eax, dword [ebp + esi*4 - 0xfe8]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x456818]
imul edx, edx, 0x244
sub edi, ecx
push eax
add edi, edx
push ebx
mov dword [0x456834], edi
call fcn.0042af70
add esp, 8
test eax, eax
je 0x406591
mov edi, dword [0x456834]
mov ecx, dword [0x456818]
mov eax, 0x9cc8e161
imul ecx, ecx, 0x344
imul edi
add edx, edi
sar edx, 9
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
add ebx, ecx
mov ecx, dword [0x456830]
mov edx, ecx
imul edx, edx, 0x257
sub ebx, edx
mov eax, 0x2d4279a3
imul dword [0x456820]
sar edx, 6
add ebx, edx
mov esi, edx
mov eax, 0xf2b9d649
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456838]
shr esi, 0x1f
add esi, ebx
sub esi, eax
mov eax, ecx
imul eax, eax, 0x1aa
mov dword [ebp + 8], eax
mov ecx, dword [0x45681c]
mov ebx, edx
mov eax, 0x4c8f8d29
imul ebx, ebx, 0x235
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x818], eax
mov eax, 0xe1fc780f
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x818]
sar edx, 9
add ecx, edx
mov eax, edx
mov edx, dword [ebp + 8]
shr eax, 0x1f
add eax, ecx
mov ecx, dword [str._r_____r____]
sub eax, ebx
sub eax, ecx
lea eax, [eax + edx + 0x1e7]
mov dword [0x45681c], eax
mov eax, dword [0x55a22c]
inc eax
cmp eax, 5
mov dword [0x456818], esi
mov dword [0x55a22c], eax
jg 0x406520
cmp dword [ebp + 0x10], 1
jne 0x406520
mov edx, dword [0x45682c]
imul ecx, ecx, 0x2a0
imul esi, esi, 0x87
mov eax, 0x30c30c31
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x43491159
imul dword [0x456820]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, esi
sub ecx, edi
sub ecx, 0x344
mov dword [0x456820], ecx
mov ecx, dword [0x456824]
mov eax, 0x4c8f8d29
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x36b45a9b
imul dword [0x45681c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
sub esi, ecx
add eax, edx
sub esi, eax
add esi, dword [ebp + 8]
mov eax, dword [0x56a608]
add esi, ebx
mov dword [str._r_____r____], esi
mov ecx, dword [eax]
push eax
mov dword [ebp - 4], 0
call dword [ecx + 0x30]
mov edx, dword [0x456824]
mov ecx, dword [0x456838]
mov eax, 0xb37072d7
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov esi, ecx
imul esi, esi, 0x344
mov eax, 0xe7fc601
imul ecx
mov eax, dword [0x45681c]
imul eax, eax, 0x244
sar edx, 5
sub edi, esi
mov esi, edx
add edi, edx
shr esi, 0x1f
add esi, edi
add esi, eax
mov eax, 0x99d722db
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov dword [0x456828], esi
mov eax, 1
jmp 0x4065dc
inc esi
jmp 0x406300
mov esi, dword [0x456824]
mov ecx, dword [0x45682c]
mov edx, dword [0x45681c]
imul ecx, ecx, 0x344
imul esi, esi, 0x4e
mov edi, dword [0x456828]
mov eax, 0xbcb6eea7
imul edi, edi, 0x16a
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
add eax, edi
sub eax, esi
mov dword [0x456830], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042a301
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret