Function at 0x403a50
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3648
call fcn.00424280
mov eax, dword [0x45193c]
mov ecx, dword [0x4508e0]
mov dword [esp + 0x3644], eax
mov eax, 0xa61fcc17
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push esi
mov esi, dword [0x4508d0]
push edi
mov edi, dword [0x4508ec]
mov edx, edi
imul edx, edx, 0x185
sub edx, eax
sub edx, esi
mov esi, dword [0x4508d4]
lea eax, [edx + esi + 0xd7]
mov dword [str._r_____r_____n], eax
mov eax, 0x197b05f9
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x21d814d3
imul esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
sub edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
sub eax, dword [0x4508e4]
lea ecx, [eax + edi - 0x30e]
mov eax, dword [esp + 0x3658]
test eax, eax
push str.C:WINDOWS_system32driversetc_service5.ini
mov dword [0x4508d4], ecx
push 0x2800
jne 0x403b14
lea edx, [esp + 0xe58]
push edx
push 0x440e09
push str.ConfigL4
jmp 0x403b26
lea eax, [esp + 0xe58]
push eax
push 0x440e09
push str.ConfigL4x
push str.GameType1
call ebp
mov edx, dword [0x4508d0]
mov ecx, dword [0x4508d8]
mov eax, edx
imul ecx, ecx, 0x30f
imul eax, eax, 0x3a7
sub ecx, eax
mov eax, 0x49e28fbb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d4]
imul edx, edx, 0x315
sub ecx, eax
add ecx, edx
lea eax, [esp + 0xe50]
mov dword [0x4508e0], ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403b80
sub eax, esi
mov dword [esp + 0xc], eax
jne 0x403ba8
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00423a31
add esp, 0x3648
ret
mov edx, dword [0x4508e8]
mov eax, 0x49e28fbb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x73d0e82d
imul ecx
sub edx, ecx
mov eax, dword [0x4508cc]
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508e4]
imul edx, edx, 0x315
sub ecx, esi
push ebx
mov ebx, dword [str._r_____r_____n]
sub ecx, edx
lea edx, [esp + 0xe54]
add ecx, ebx
push edx
lea ecx, [eax + ecx - 0x30e]
lea eax, [esp + 0x18]
push 0x190
push eax
mov dword [0x4508cc], ecx
call fcn.004035c0
mov edi, eax
add esp, 0xc
cmp edi, 4
jl 0x4041bf
mov ecx, edi
and ecx, 0x80000003
jns 0x403c33
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x4041bf
mov ecx, dword [0x4508dc]
mov esi, dword [0x4508d0]
mov eax, 0x60f25deb
imul dword [0x4508e0]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, ecx
imul ebx, ebx, 0x377
sub ebx, eax
mov eax, dword [0x4508e8]
mov edx, esi
imul edx, edx, 0x1a8
add ebx, eax
lea eax, [edx + ebx - 0x15c]
mov dword [0x4508d8], eax
mov eax, edi
cdq
mov edi, 3
and edx, edi
add eax, edx
sar eax, 2
mov dword [0x462cd0], eax
mov eax, dword [0x462950]
test eax, eax
jg 0x403dfe
mov eax, 0xde27eb2d
imul ecx, ecx, 0x222
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r_____n]
imul edx, edx, 0x24e
push str.C:WINDOWS_system32driversetc_service5.ini
sub ecx, eax
push 0x800
lea eax, [ecx + edx - 0x30e]
lea ecx, [esp + 0x65c]
push ecx
push 0x440e09
push str.ConfigL1
push str.GameType1
mov dword [0x4508e4], eax
call ebp
lea edx, [esp + 0x654]
push edx
call fcn.0042423a
add esp, 4
cmp eax, edi
mov esi, 0x78
jge 0x403d17
mov dword [0x462950], edi
jmp 0x403d48
lea eax, [esp + 0x654]
push eax
call fcn.0042423a
add esp, 4
cmp eax, esi
jle 0x403d33
mov dword [0x462950], esi
jmp 0x403d48
lea ecx, [esp + 0x654]
push ecx
call fcn.0042423a
add esp, 4
mov dword [0x462950], eax
mov ecx, dword [0x4508d0]
mov ebx, dword [0x4508dc]
mov eax, 0xde27eb2d
imul ebx, ebx, 0x222
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r_____n]
sar edx, 9
imul ecx, ecx, 0x24e
mov eax, edx
shr eax, 0x1f
push str.C:WINDOWS_system32driversetc_service5.ini
add eax, edx
push 0x800
sub ebx, eax
lea eax, [esp + 0x65c]
push eax
push 0x440e09
push str.ConfigL2
lea edx, [ebx + ecx - 0x30e]
push str.GameType1
mov dword [0x4508e4], edx
call ebp
lea ecx, [esp + 0x654]
push ecx
call fcn.0042423a
add esp, 4
cmp eax, edi
jge 0x403dc7
mov dword [0x462954], edi
jmp 0x403df8
lea edx, [esp + 0x654]
push edx
call fcn.0042423a
add esp, 4
cmp eax, esi
jle 0x403de3
mov dword [0x462954], esi
jmp 0x403df8
lea eax, [esp + 0x654]
push eax
call fcn.0042423a
add esp, 4
mov dword [0x462954], eax
mov ecx, dword [0x4508dc]
mov esi, dword [0x4508d4]
mov edi, dword [0x4508e4]
mov eax, 0x97012e03
imul edi, edi, 0x1a8
imul esi
add edx, esi
mov esi, dword [0x4508ec]
sar edx, 8
add edi, edx
mov eax, edx
mov edx, esi
imul edx, edx, 0x185
shr eax, 0x1f
add eax, edi
mov edi, dword [0x4508d8]
sub eax, edx
sub eax, edi
add eax, 0x4f2
mov dword [0x4508d0], eax
mov eax, dword [0x462cd4]
test eax, eax
jg 0x403f9b
mov eax, 0xa8791709
imul esi, esi, 0x30f
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x97012e03
imul edi
add edx, edi
sar edx, 8
mov eax, edx
sub ecx, esi
shr eax, 0x1f
add eax, edx
sub ecx, eax
push str.C:WINDOWS_system32driversetc_service5.ini
add ecx, 0x456
push 0x800
mov dword [0x4508dc], ecx
lea ecx, [esp + 0x65c]
push ecx
push 0x440e09
push str.ConfigL3
push str.GameType1
call ebp
mov ecx, dword [0x4508e8]
mov esi, dword [0x4508cc]
mov ebp, dword [0x4508d0]
imul esi, esi, 0x2a4
mov eax, 0x197b05f9
imul ecx
mov ecx, dword [0x4508e0]
sar edx, 6
imul ecx, ecx, 0x1b2
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
sub esi, ebp
lea edx, [esp + 0x654]
sub esi, 0x163
push edx
mov dword [0x4508e8], esi
call fcn.0042423a
mov ecx, dword [0x462cd0]
add esp, 4
cmp eax, ecx
jge 0x403f1e
mov dword [0x462cd4], ecx
jmp 0x403f95
lea eax, [esp + 0x654]
push eax
call fcn.0042423a
add esp, 4
cmp eax, 0x64
jle 0x403f80
mov ecx, dword [0x4508dc]
mov eax, 0x60f25deb
imul ecx, ecx, 0x377
imul dword [0x4508e0]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d0]
imul edx, edx, 0x1a8
sub ecx, eax
add ecx, dword [0x4508e8]
lea eax, [edx + ecx - 0x15c]
mov dword [0x4508d8], eax
mov dword [0x462cd4], 0x64
jmp 0x403f95
lea ecx, [esp + 0x654]
push ecx
call fcn.0042423a
add esp, 4
mov dword [0x462cd4], eax
mov esi, dword [0x4508ec]
mov ecx, dword [0x4508d4]
mov eax, 0x197b05f9
imul dword [0x4508e0]
sar edx, 6
mov eax, edx
mov ebx, dword [0x4508e4]
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x21d814d3
imul ecx
sub edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ecx, edi
sub ecx, ebx
lea edx, [ecx + esi - 0x30e]
push 0
mov dword [0x4508d4], edx
call fcn.0042423f
sub eax, dword [0x462974]
add esp, 4
cmp eax, 0xa8c0
jl 0x404058
mov ecx, dword [0x4508e0]
mov esi, dword [0x4508dc]
mov edi, dword [0x4508e8]
imul esi, esi, 0x377
mov eax, 0x60f25deb
imul ecx
mov ecx, dword [0x4508d0]
sar edx, 8
imul ecx, ecx, 0x1a8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
lea edx, [ecx + esi - 0x15c]
push 0
mov dword [0x4508d8], edx
call fcn.0042423f
add esp, 4
xor esi, esi
mov dword [0x462974], eax
mov dword [0x462cd8], esi
jmp 0x40405e
mov esi, dword [0x462cd8]
mov ecx, dword [0x4508dc]
mov edi, dword [0x4508ec]
mov eax, 0xa8791709
imul edi, edi, 0x30f
imul ecx
add edx, ecx
mov ecx, dword [0x4508d8]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x97012e03
imul ecx
mov eax, dword [0x462cd4]
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
sub ebx, edi
add ecx, edx
sub ebx, ecx
add ebx, 0x456
cmp esi, eax
mov dword [0x4508dc], ebx
jge 0x4041a3
cmp esi, dword [0x462cd0]
jge 0x4040e6
push 0
call fcn.0042423f
sub eax, dword [0x462cdc]
mov edx, dword [0x462950]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jge 0x404121
mov esi, dword [0x462cd8]
cmp esi, dword [0x462cd4]
jge 0x4041a3
cmp esi, dword [0x462cd0]
jl 0x4041a3
push 0
call fcn.0042423f
mov ecx, dword [0x462954]
mov esi, dword [0x462cdc]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jl 0x4041a3
mov ecx, dword [0x4508d0]
mov esi, dword [0x4508d8]
mov edx, ecx
imul esi, esi, 0x30f
imul edx, edx, 0x3a7
sub esi, edx
mov eax, 0x49e28fbb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x462cd8]
cdq
idiv dword [0x462cd0]
mov ecx, dword [0x4508d4]
imul ecx, ecx, 0x315
add esi, ecx
mov dword [0x4508e0], esi
shl edx, 4
mov eax, dword [esp + edx + 0x14]
mov edx, 0x462ce0
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404180
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00423a31
add esp, 0x3648
ret
pop ebx
pop edi
pop esi
mov eax, 9
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00423a31
add esp, 0x3648
ret
mov ecx, dword [esp + 0x3654]
pop ebx
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
call fcn.00423a31
add esp, 0x3648
ret