Function at 0x404d60
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x17dc
call fcn.0042e810
mov eax, dword [0x45c540]
xor eax, esp
mov dword [esp + 0x17d8], eax
mov eax, dword [esp + 0x17e4]
mov dword [esp + 4], eax
mov ecx, dword [0x45abc8]
push ebx
push ebp
mov ebp, dword [0x45abe0]
push esi
push edi
mov edi, dword [0x45abd0]
mov eax, 0xb81702e1
imul edi
add edx, edi
sar edx, 6
mov esi, edx
add ecx, ebp
shl ecx, 4
add ecx, edx
mov eax, 0x94f2095
imul dword [0x45abe4]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
shr esi, 0x1f
add esi, ecx
sub esi, eax
mov eax, 0x3e0f83e1
imul edi
sar edx, 3
add esi, edx
mov ecx, edx
mov ebx, dword [0x45abe8]
mov eax, edi
cdq
and edx, 0xf
add eax, edx
mov edx, dword [0x45abdc]
sar eax, 4
shr ecx, 0x1f
add ecx, esi
add ecx, eax
mov eax, 0x63e7063f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45abd8]
imul edx, edx, 0x52
mov esi, ebx
imul esi, esi, 0x54
sub esi, eax
add esi, edx
mov eax, 0x6bca1af3
imul edi
sar edx, 5
mov edi, dword [0x45abe4]
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x45abd8]
cdq
and edx, 0xf
add eax, edx
mov edx, ecx
imul edx, edx, 0x37
sar eax, 4
add esi, eax
add esi, edx
sub esi, edi
mov edi, dword [esp + 0x17f0]
sub esi, 0x10
mov dword [0x45abc8], ecx
mov dword [0x45abd0], esi
test edi, edi
je 0x40517a
lea edx, [edi + 1]
jmp 0x404e70
mov al, byte [edi]
inc edi
test al, al
jne 0x404e70
sub edi, edx
mov dword [esp + 0x10], edi
je 0x40517a
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40517a
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x404e92
sub edi, edx
mov dword [esp + 0x10], edi
je 0x40517a
mov edx, dword [0x45abd4]
imul ecx, ecx, 0x53
mov eax, 0x3159721f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x47e8fd1f
imul ebx
sub edx, ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, edi
mov edi, eax
mov eax, 0x30c30c31
imul ebx
sar edx, 4
add edi, edx
mov eax, edx
shr eax, 0x1f
add eax, edi
mov edx, ebx
shl edx, 4
sub eax, edx
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, 0xdd67c8a7
imul ebp
mov eax, dword [esp + 0x10]
add edx, ebp
imul ebp, ebp, 0x25
sar edx, 5
mov edi, edx
shr edi, 0x1f
add eax, edx
add edi, eax
mov eax, dword [esp + 0x17f0]
add edi, ebp
lea ebp, [esp + 0xfe8]
mov dword [0x45abd8], edi
sub ebp, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x404f30
lea eax, [esp + 0xfe8]
push eax
call fcn.00404b40
imul edi, edi, 0x21
mov ecx, dword [0x45abcc]
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov ecx, edx
add esi, ebx
shr ecx, 0x1f
imul esi, esi, 0x4c
add ecx, edx
mov edx, dword [0x45abd4]
imul edx, edx, 0x54
sub esi, ecx
mov ecx, dword [0x45abdc]
sub esi, edx
mov eax, 0x78787879
imul ebx
sar edx, 5
add esp, 4
mov eax, edx
shr eax, 0x1f
add esi, edx
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
add eax, esi
push 0x800
add eax, edi
shl ecx, 4
sub eax, ecx
lea edx, [esp + 0x7f0]
push edx
mov dword [0x45abe0], eax
mov eax, dword [esp + 0x20]
push 0x44ae89
push eax
push str.GameType1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x7e8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fd0
sub eax, edx
mov dword [esp + 0x10], eax
je 0x40511e
mov ecx, dword [0x45abd0]
mov edx, dword [0x45abd8]
lea esi, [edx + ecx]
imul ecx, ecx, 0x53
mov edx, dword [str._r_____r____]
imul esi, esi, 0x59
mov eax, 0x3e0f83e1
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
sub esi, ecx
mov ecx, dword [0x45abc8]
mov eax, 0x3159721f
imul ecx
sar edx, 4
mov edi, edx
add esi, edx
mov edx, dword [0x45abe4]
shl edx, 4
shr edi, 0x1f
add edi, esi
sub edi, edx
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
lea ecx, [esp + 0x7e8]
push ecx
add edi, edx
shr eax, 0x1f
lea edx, [esp + 0x1c]
add eax, edi
push 0x1f4
push edx
mov dword [0x45abe8], eax
call fcn.0040ed30
mov edi, eax
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x40511e
jmp 0x405080
mov ecx, dword [0x45abcc]
mov ebx, ecx
imul ebx, ebx, 0x59
mov eax, 0x63e7063f
imul ecx
sar edx, 5
add ebx, edx
mov ebp, edx
mov eax, 0x78787879
imul ecx
mov ecx, dword [0x45abd4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
shr ebp, 0x1f
add ebp, ebx
sub ebp, eax
mov eax, 0x3159721f
imul ecx
sar edx, 4
mov ebx, edx
add ebp, edx
mov eax, 0x63e7063f
imul ecx
mov eax, dword [0x45abdc]
sar edx, 5
imul eax, eax, 0x37
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45abe8]
imul edx, edx, 0x54
shr ebx, 0x1f
add ebx, ebp
sub ebx, ecx
mov ecx, dword [esp + esi*4 + 0x18]
add ebx, edx
push ecx
lea edx, [esp + 0xfec]
add ebx, eax
push edx
mov dword [str._r_____r____], ebx
call fcn.0042ec20
add esp, 8
test eax, eax
jne 0x405195
inc esi
cmp esi, edi
jl 0x405080
mov ecx, dword [0x45abdc]
mov esi, dword [str._r_____r____]
mov eax, ecx
imul esi, esi, 0x8a
imul eax, eax, 0x59
add esi, eax
mov eax, 0x3159721f
imul ecx
sar edx, 4
add esi, edx
mov edi, edx
mov edx, dword [0x45abd8]
imul edx, edx, 0x37
shr edi, 0x1f
add edi, esi
add edi, edx
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
mov ecx, dword [0x45abe0]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
lea edx, [edi + ecx - 0x10]
mov dword [0x45abd4], edx
xor eax, eax
mov ecx, dword [esp + 0x17e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042dfcd
add esp, 0x17dc
ret
mov ecx, dword [0x45abd4]
mov eax, 0x3159721f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45abe8]
imul edx, edx, 0x54
mov esi, eax
sub esi, edx
mov eax, 0x94f2095
imul ecx
mov ecx, dword [0x45abcc]
sar edx, 1
add esi, edx
mov edi, edx
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
mov ecx, dword [0x45abe0]
sar edx, 5
imul ecx, ecx, 0x59
shr edi, 0x1f
mov eax, edx
shr eax, 0x1f
add edi, esi
add edi, edx
mov edx, dword [0x45abe4]
add eax, edi
add eax, ecx
shl edx, 4
add eax, edx
sub eax, dword [str._r_____r____]
add eax, 0x4c
mov dword [0x45abcc], eax
mov eax, 1
jmp 0x40517c