Function at 0x405530
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x17e4
call fcn.00432110
mov eax, dword [0x460640]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x17e8], eax
mov eax, dword [esp + 0x17f4]
push esi
mov esi, dword [0x45ecd0]
mov dword [esp + 0x10], eax
push edi
mov eax, esi
cdq
mov ebx, eax
mov eax, dword [0x45ece4]
push 1
mov edi, edx
cdq
push 0x5295f78d
push edx
push eax
call fcn.004319f0
mov ecx, eax
mov eax, 0x4d7937c3
mul esi
push 1
shr edx, 0x1e
push 0xebf310a9
mov eax, edx
push edi
sub eax, ecx
push ebx
mov dword [esp + 0x20], eax
call fcn.004319f0
mov ebp, dword [0x45ece0]
mov ecx, dword [esp + 0x10]
mov edx, ebp
imul edx, edx, 0x7f4ea4e2
add ecx, eax
sub ecx, edx
mov eax, 0x2a01e433
imul esi
mov eax, dword [0x45ecc8]
imul eax, eax, 0x6181b446
sar edx, 0x1c
mov esi, edx
add ecx, edx
shr esi, 0x1f
add esi, ecx
add esi, eax
mov eax, dword [0x45ecdc]
push 2
cdq
push 0xb57eb16
push edx
push eax
mov dword [0x45ecc8], esi
call fcn.004319f0
push 0xfffffffffffffffe
push 0x4f64023c
push edi
push ebx
mov dword [esp + 0x20], eax
call fcn.004319f0
mov ecx, dword [esp + 0x10]
mov edi, dword [0x45ece8]
sub eax, ecx
mov ecx, edi
imul ecx, ecx, 0x6b66a94
add eax, ecx
mov ecx, dword [0x45ecd8]
mov edx, ecx
imul edx, edx, 0xb57eb16
add eax, edx
mov dword [esp + 0x10], eax
mov eax, 0x2a01e433
imul ecx
sar edx, 0x1c
mov ebx, edx
shr ebx, 0x1f
mov eax, dword [esp + 0x10]
add eax, edx
add ebx, eax
mov eax, esi
imul eax, eax, 0x5295f78d
add ebx, eax
sub ebx, dword [0x45ece4]
mov eax, dword [esp + 0x17f8]
sub ebx, 0x6181b446
test eax, eax
mov dword [0x45ecd0], ebx
je 0x4059c6
lea edx, [eax + 1]
jmp 0x405670
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405670
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4059c6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4059c6
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405692
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4059c6
mov eax, edi
cdq
mov edi, eax
mov eax, dword [0x45ecd4]
push 1
mov dword [esp + 0x20], edx
cdq
push 0xeae0c6d3
push edx
push eax
mov dword [esp + 0x28], edi
call fcn.004319f0
mov ecx, dword [esp + 0x1c]
push 0xfffffffffffffffe
push 0x140cef57
push ecx
push edi
mov dword [esp + 0x20], eax
call fcn.004319f0
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x10]
push 2
push 0x6b66a94
sub edi, eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.004319f0
imul esi, esi, 0x151f392d
add edi, eax
mov eax, 0x2a215c6f
mul ebp
mov eax, dword [esp + 0x17f8]
mov ecx, ebp
imul ebp, ebp, 0x242d3a05
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [0x45ece8]
imul edx, edx, 0x6181b446
shr ecx, 0x1f
add edi, ecx
sub edi, edx
sub edi, esi
sub edi, ebp
lea esi, [esp + 0xff0]
mov dword [0x45ecd8], edi
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x405744
lea eax, [esp + 0xff0]
push eax
call fcn.004052d0
mov eax, dword [0x45eccc]
mov ecx, dword [0x45ece8]
add esp, 4
push 0xfffffffffffffffe
cdq
push 0x4f64023c
push edx
lea esi, [ecx + ebx]
push eax
imul esi, esi, 0x4f64023c
call fcn.004319f0
mov edx, dword [esp + 0x1c]
push 1
push 0x86050f76
mov ebx, eax
mov eax, dword [esp + 0x20]
push edx
push eax
sub ebx, esi
call fcn.004319f0
imul edi, edi, 0x2c857103
mov ecx, dword [0x45ecd4]
mov edx, dword [0x45ecdc]
imul ecx, ecx, 0x6b66a94
push str.C:_WINDoWS_system32driversetc_serViCe5.ini
imul edx, edx, 0x6181b446
add ebx, eax
push 0x800
lea eax, [esp + 0x7f8]
push eax
sub ebx, ecx
mov ecx, dword [esp + 0x20]
push 0x44ee59
sub ebx, edi
push ecx
sub ebx, edx
push str.GameType1
mov dword [0x45ece0], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x7f0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057f8
sub eax, edx
mov dword [esp + 0x10], eax
je 0x405963
mov esi, dword [0x45ecc8]
push 1
mov eax, esi
cdq
push 0xeae0c6d3
push edx
push eax
call fcn.004319f0
mov ecx, dword [0x45ecd0]
mov edx, dword [0x45ecd8]
add edx, ecx
imul ecx, ecx, 0x151f392d
imul edx, edx, 0x140cef57
mov edi, eax
sub edi, edx
mov eax, 0x4d7937c3
mul dword [str._r_____r____]
shr edx, 0x1e
sub edi, edx
mov eax, 0x2a215c6f
mul esi
mov eax, dword [0x45ece4]
sub esi, edx
imul eax, eax, 0x6181b446
shr esi, 1
add esi, edx
shr esi, 0x1f
add edi, esi
sub edi, eax
add edi, ecx
lea ecx, [esp + 0x7f0]
push ecx
lea edx, [esp + 0x24]
push 0x1f4
push edx
mov dword [0x45ece8], edi
call fcn.00410ba0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
jle 0x405963
mov esi, dword [0x45eccc]
mov eax, esi
cdq
mov edi, eax
mov eax, dword [0x45ecd4]
push 1
mov ebx, edx
cdq
push 0xeae0c6d3
push edx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call fcn.004319f0
push 1
push 0x86050f76
push ebx
push edi
mov ebp, eax
call fcn.004319f0
push 2
push 0xb57eb16
push ebx
push edi
sub ebp, eax
call fcn.004319f0
mov ecx, dword [esp + 0x18]
push 2
add ebp, eax
mov eax, dword [esp + 0x20]
push 0xb57eb16
push eax
push ecx
call fcn.004319f0
imul esi, esi, 0x140cef57
mov edx, dword [0x45ece8]
sub ebp, eax
imul edx, edx, 0x6b66a94
mov eax, dword [0x45ecdc]
imul eax, eax, 0x5295f78d
sub ebp, esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + esi*4 + 0x20]
add ebp, edx
push ecx
lea edx, [esp + 0xff4]
add ebp, eax
push edx
mov dword [str._r_____r____], ebp
call fcn.00432520
add esp, 8
test eax, eax
jne 0x4059e1
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4058a5
mov esi, dword [0x45ecdc]
push 1
mov eax, esi
cdq
push 0xeae0c6d3
push edx
push eax
call fcn.004319f0
mov ecx, eax
mov edi, dword [0x45ece0]
mov eax, 0x2a215c6f
mul esi
mov eax, esi
imul esi, esi, 0x140cef57
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [0x45ecd8]
shr eax, 0x1f
imul edx, edx, 0x5295f78d
sub ecx, eax
mov eax, dword [str._r_____r____]
imul eax, eax, 0x3d76be60
sub ecx, esi
add edx, edi
add edx, ecx
lea ecx, [eax + edx - 0x6181b446]
mov dword [0x45ecd4], ecx
xor eax, eax
mov ecx, dword [esp + 0x17f0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043180d
add esp, 0x17e4
ret
mov eax, dword [0x45ecd4]
cdq
push 1
push 0xeae0c6d3
mov edi, edx
mov esi, eax
push edi
push esi
call fcn.004319f0
push 1
push 0x5295f78d
push edi
push esi
mov ebx, eax
call fcn.004319f0
mov ecx, dword [0x45eccc]
add ebx, eax
mov eax, 0x2a215c6f
mul ecx
mov eax, dword [0x45ece0]
sub ecx, edx
imul eax, eax, 0x140cef57
shr ecx, 1
add ecx, edx
mov edx, dword [0x45ece4]
shr ecx, 0x1f
imul edx, edx, 0x6181b446
add ebx, ecx
mov ecx, dword [0x45ece8]
imul ecx, ecx, 0x6b66a94
sub ebx, eax
sub ebx, ecx
mov ecx, dword [str._r_____r____]
add ebx, edx
sub ebx, ecx
sub ebx, 0x4f64023c
mov dword [0x45eccc], ebx
mov eax, 1
jmp 0x4059c8