Function at 0x404050
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x17d8
call fcn.00429680
mov eax, dword [0x457190]
mov dword [esp + 0x17d4], eax
mov ecx, dword [0x455830]
push ebx
imul ecx, ecx, 0x32
mov ebx, dword [0x455820]
push ebp
push esi
mov esi, dword [0x455834]
mov eax, 0xc71c71c7
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
mov eax, 0x78787879
imul ebx
sar edx, 4
sub edi, ecx
add edi, edx
mov ebp, edx
mov eax, 0x5397829d
imul esi
sar edx, 4
mov ecx, edx
shr ebp, 0x1f
add ebp, edi
mov edi, dword [0x45582c]
add ebp, edx
mov edx, dword [0x455818]
imul edx, edx, 0x31
shr ecx, 0x1f
add ecx, ebp
add ecx, edx
mov eax, 0x92492493
imul edi
add edx, edi
mov edi, dword [str._r_____r____]
sar edx, 5
imul edi, edi, 0x38
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x66666667
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov dword [0x455818], ecx
lea ecx, [ecx + ecx*8]
lea edx, [edi + ecx*8]
mov edi, dword [esp + 0x17ec]
sub edx, esi
sub edx, 0x31
test edi, edi
mov dword [0x455820], edx
je 0x4043b0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404127
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4043b0
mov ebx, dword [esp + 0x17f0]
test ebx, ebx
je 0x4043b0
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404150
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4043b0
mov ecx, dword [0x455824]
mov eax, 0x4bda12f7
imul ecx
mov ecx, dword [0x455838]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0xb2b78c13
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, dword [0x45581c]
mov edx, ecx
imul eax, eax, 0x36
imul edx, edx, 0x31
sub ebp, esi
sub ebp, edx
add ebp, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add ebp, edx
add esi, ebp
lea ecx, [esp + 0xfe4]
mov dword [0x455828], esi
mov eax, edi
sub ecx, edi
lea esp, [esp]
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x4041d0
lea ecx, [esp + 0xfe4]
push ecx
call fcn.00403ec0
imul esi, esi, 0x22
mov ecx, dword [0x45581c]
mov edi, dword [0x455824]
mov eax, 0x66666667
imul edi, edi, 0x1b
imul ecx
mov ecx, dword [0x45582c]
add esp, 4
imul ecx, ecx, 0x31
sar edx, 4
mov eax, edx
push str.C:WINDOWS_system32driversetc_service5.ini
shr eax, 0x1f
push 0x800
add eax, edx
lea edx, [esp + 0x7ec]
push edx
sub edi, eax
push 0x445e15
add edi, esi
push ebx
sub edi, ecx
push str.GameType1
mov dword [0x455830], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x7e4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404250
sub eax, edx
mov dword [esp + 0x10], eax
je 0x404367
mov ecx, dword [0x45582c]
mov eax, 0x4bda12f7
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x78787879
imul ecx
mov ebx, dword [0x455820]
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x455834]
imul edx, edx, 0x31
sub esi, ecx
lea eax, [esp + 0x7e4]
push eax
sub esi, edx
lea ecx, [esp + 0x18]
push 0x1f4
sub esi, ebx
push ecx
mov dword [0x455838], esi
call fcn.0040c080
mov edi, eax
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x404367
jmp 0x4042e0
mov ecx, dword [0x455824]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebp, ecx
mov ecx, dword [0x45581c]
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [0x455838]
sar edx, 4
imul ecx, ecx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455830]
imul edx, edx, 0x35
sub ebp, ebx
sub ebp, eax
mov eax, dword [esp + esi*4 + 0x14]
add ebp, ecx
push eax
lea ecx, [esp + 0xfe8]
add ebp, edx
push ecx
mov dword [str._r_____r____], ebp
call fcn.00429ab0
add esp, 8
test eax, eax
jne 0x4043c9
inc esi
cmp esi, edi
jl 0x4042e0
mov eax, dword [0x455828]
mov ecx, dword [0x45582c]
lea edx, [eax + eax*8]
shl edx, 3
mov esi, edx
mov eax, 0x4bda12f7
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 4
imul ecx, ecx, 0x36
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, dword [0x455830]
mov edx, dword [0x455818]
imul edx, edx, 0x35
sub esi, eax
add ecx, esi
lea eax, [edx + ecx - 0x31]
mov dword [0x455824], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x17d4]
call fcn.00428e41
add esp, 0x17d8
ret
mov ecx, dword [0x455838]
mov eax, 0x4bda12f7
imul ecx
imul ecx, ecx, 0xd
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [0x45581c]
mov eax, 0x4bda12f7
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esi, edx
mov edx, dword [str._r_____r____]
add eax, esi
sub eax, ecx
mov ecx, dword [0x455830]
imul ecx, ecx, 0x35
add eax, ecx
mov ecx, dword [esp + 0x17e4]
pop edi
sub eax, edx
add eax, 0x28
pop esi
pop ebp
mov dword [0x45581c], eax
mov eax, 1
pop ebx
call fcn.00428e41
add esp, 0x17d8
ret