Function at 0x404090
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3648
call fcn.004248b0
mov eax, dword [0x451944]
mov ecx, dword [0x4508e8]
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 [0x4508d8]
push edi
mov edi, dword [0x4508f4]
mov edx, edi
imul edx, edx, 0x185
sub edx, eax
sub edx, esi
mov esi, dword [0x4508dc]
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 [0x4508ec]
lea ecx, [eax + edi - 0x30e]
mov eax, dword [esp + 0x3658]
test eax, eax
push str.C:WINDOWS_system32driversetc_service5.ini
mov dword [0x4508dc], ecx
push 0x2800
jne 0x404154
lea edx, [esp + 0xe58]
push edx
push 0x440e1d
push str.ConfigL4
jmp 0x404166
lea eax, [esp + 0xe58]
push eax
push 0x440e1d
push str.ConfigL4x
push str.GameType1
call ebp
mov edx, dword [0x4508d8]
mov ecx, dword [0x4508e0]
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 [0x4508dc]
imul edx, edx, 0x315
sub ecx, eax
add ecx, edx
lea eax, [esp + 0xe50]
mov dword [0x4508e8], ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4041c0
sub eax, esi
mov dword [esp + 0xc], eax
jne 0x4041e8
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00424061
add esp, 0x3648
ret
mov edx, dword [0x4508f0]
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 [0x4508d4]
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508ec]
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 [0x4508d4], ecx
call fcn.00403c00
mov edi, eax
add esp, 0xc
cmp edi, 4
jl 0x4047ff
mov ecx, edi
and ecx, reloc.WS2_32.dll_closesocket
jns 0x404273
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x4047ff
mov ecx, dword [0x4508e4]
mov esi, dword [0x4508d8]
mov eax, 0x60f25deb
imul dword [0x4508e8]
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 [0x4508f0]
mov edx, esi
imul edx, edx, 0x1a8
add ebx, eax
lea eax, [edx + ebx - 0x15c]
mov dword [0x4508e0], eax
mov eax, edi
cdq
mov edi, 3
and edx, edi
add eax, edx
sar eax, 2
mov dword [0x562cd0], eax
mov eax, dword [0x562950]
test eax, eax
jg 0x40443e
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 0x440e1d
push str.ConfigL1
push str.GameType1
mov dword [0x4508ec], eax
call ebp
lea edx, [esp + 0x654]
push edx
call fcn.0042486a
add esp, 4
cmp eax, edi
mov esi, 0x78
jge 0x404357
mov dword [0x562950], edi
jmp 0x404388
lea eax, [esp + 0x654]
push eax
call fcn.0042486a
add esp, 4
cmp eax, esi
jle 0x404373
mov dword [0x562950], esi
jmp 0x404388
lea ecx, [esp + 0x654]
push ecx
call fcn.0042486a
add esp, 4
mov dword [0x562950], eax
mov ecx, dword [0x4508d8]
mov ebx, dword [0x4508e4]
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 0x440e1d
push str.ConfigL2
lea edx, [ebx + ecx - 0x30e]
push str.GameType1
mov dword [0x4508ec], edx
call ebp
lea ecx, [esp + 0x654]
push ecx
call fcn.0042486a
add esp, 4
cmp eax, edi
jge 0x404407
mov dword [0x562954], edi
jmp 0x404438
lea edx, [esp + 0x654]
push edx
call fcn.0042486a
add esp, 4
cmp eax, esi
jle 0x404423
mov dword [0x562954], esi
jmp 0x404438
lea eax, [esp + 0x654]
push eax
call fcn.0042486a
add esp, 4
mov dword [0x562954], eax
mov ecx, dword [0x4508e4]
mov esi, dword [0x4508dc]
mov edi, dword [0x4508ec]
mov eax, 0x97012e03
imul edi, edi, 0x1a8
imul esi
add edx, esi
mov esi, dword [0x4508f4]
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 [0x4508e0]
sub eax, edx
sub eax, edi
add eax, 0x4f2
mov dword [0x4508d8], eax
mov eax, dword [0x562cd4]
test eax, eax
jg 0x4045db
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 [0x4508e4], ecx
lea ecx, [esp + 0x65c]
push ecx
push 0x440e1d
push str.ConfigL3
push str.GameType1
call ebp
mov ecx, dword [0x4508f0]
mov esi, dword [0x4508d4]
mov ebp, dword [0x4508d8]
imul esi, esi, 0x2a4
mov eax, 0x197b05f9
imul ecx
mov ecx, dword [0x4508e8]
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 [0x4508f0], esi
call fcn.0042486a
mov ecx, dword [0x562cd0]
add esp, 4
cmp eax, ecx
jge 0x40455e
mov dword [0x562cd4], ecx
jmp 0x4045d5
lea eax, [esp + 0x654]
push eax
call fcn.0042486a
add esp, 4
cmp eax, 0x64
jle 0x4045c0
mov ecx, dword [0x4508e4]
mov eax, 0x60f25deb
imul ecx, ecx, 0x377
imul dword [0x4508e8]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d8]
imul edx, edx, 0x1a8
sub ecx, eax
add ecx, dword [0x4508f0]
lea eax, [edx + ecx - 0x15c]
mov dword [0x4508e0], eax
mov dword [0x562cd4], 0x64
jmp 0x4045d5
lea ecx, [esp + 0x654]
push ecx
call fcn.0042486a
add esp, 4
mov dword [0x562cd4], eax
mov esi, dword [0x4508f4]
mov ecx, dword [0x4508dc]
mov eax, 0x197b05f9
imul dword [0x4508e8]
sar edx, 6
mov eax, edx
mov ebx, dword [0x4508ec]
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 [0x4508dc], edx
call fcn.0042486f
sub eax, dword [0x562974]
add esp, 4
cmp eax, 0xa8c0
jl 0x404698
mov ecx, dword [0x4508e8]
mov esi, dword [0x4508e4]
mov edi, dword [0x4508f0]
imul esi, esi, 0x377
mov eax, 0x60f25deb
imul ecx
mov ecx, dword [0x4508d8]
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 [0x4508e0], edx
call fcn.0042486f
add esp, 4
xor esi, esi
mov dword [0x562974], eax
mov dword [0x562cd8], esi
jmp 0x40469e
mov esi, dword [0x562cd8]
mov ecx, dword [0x4508e4]
mov edi, dword [0x4508f4]
mov eax, 0xa8791709
imul edi, edi, 0x30f
imul ecx
add edx, ecx
mov ecx, dword [0x4508e0]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x97012e03
imul ecx
mov eax, dword [0x562cd4]
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 [0x4508e4], ebx
jge 0x4047e3
cmp esi, dword [0x562cd0]
jge 0x404726
push 0
call fcn.0042486f
sub eax, dword [0x562cdc]
mov edx, dword [0x562950]
imul edx, edx, 0x3c
add esp, 4
cmp eax, edx
jge 0x404761
mov esi, dword [0x562cd8]
cmp esi, dword [0x562cd4]
jge 0x4047e3
cmp esi, dword [0x562cd0]
jl 0x4047e3
push 0
call fcn.0042486f
mov ecx, dword [0x562954]
mov esi, dword [0x562cdc]
imul ecx, ecx, 0x3c
sub eax, esi
add esp, 4
cmp eax, ecx
jl 0x4047e3
mov ecx, dword [0x4508d8]
mov esi, dword [0x4508e0]
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 [0x562cd8]
cdq
idiv dword [0x562cd0]
mov ecx, dword [0x4508dc]
imul ecx, ecx, 0x315
add esi, ecx
mov dword [0x4508e8], esi
shl edx, 4
mov eax, dword [esp + edx + 0x14]
mov edx, 0x562ce0
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4047c0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00424061
add esp, 0x3648
ret
pop ebx
pop edi
pop esi
mov eax, 9
pop ebp
mov ecx, dword [esp + 0x3644]
call fcn.00424061
add esp, 0x3648
ret
mov ecx, dword [esp + 0x3654]
pop ebx
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
call fcn.00424061
add esp, 0x3648
ret