Function at 0x409270
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x450b40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
mov eax, dword [0x468850]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push str.gameyxdown.dat
lea ebp, [edi + 0x2e4]
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040bf20
add esp, 0xc
mov dword [esp + 0x24], 0
mov ebx, dword [eax]
mov eax, dword [edi + 0x340]
lea esi, [edi + 0x340]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x100
or eax, ecx
jge 0x4092e8
push 0x100
mov ecx, esi
call fcn.00402130
mov eax, dword [esi]
push ebx
push 0x100
push eax
push 0x4592dc
push str.GameName
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40932e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x409349
push ecx
push eax
call fcn.00438073
add esp, 8
test eax, eax
jl 0x40971b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40971b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
push str.gameyxdown.dat
mov word [ecx + eax*2], dx
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040bf20
add esp, 0xc
mov ecx, 1
mov dword [esp + 0x24], ecx
mov esi, dword [eax]
mov eax, dword [edi + 0x344]
sub ecx, dword [eax - 4]
lea ebx, [edi + 0x344]
sub eax, 0x10
mov eax, dword [eax + 8]
sub eax, 0x100
or eax, ecx
mov dword [esp + 0x18], ebx
jge 0x4093ab
push 0x100
mov ecx, ebx
call fcn.00402130
mov eax, dword [ebx]
push esi
push 0x100
push eax
push 0x4592dc
push str.FileName
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40940c
push ecx
push eax
call fcn.00438073
add esp, 8
test eax, eax
jl 0x40971b
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x40971b
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
push str.gameyxdown.dat
mov word [ecx + eax*2], dx
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040bf20
add esp, 0xc
mov dword [esp + 0x24], 2
mov ebx, dword [eax]
mov eax, dword [edi + 0x348]
lea esi, [edi + 0x348]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x100
or eax, ecx
jge 0x40946e
push 0x100
mov ecx, esi
call fcn.00402130
mov eax, dword [esi]
push ebx
push 0x100
push eax
push 0x4592dc
push str.GameId
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4094b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4094cf
push ecx
push eax
call fcn.00438073
add esp, 8
test eax, eax
jl 0x40971b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40971b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
push str.gameyxdown.dat
mov word [ecx + eax*2], dx
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040bf20
add esp, 0xc
mov dword [esp + 0x24], 3
mov ebx, dword [eax]
mov eax, dword [edi + 0x34c]
lea esi, [edi + 0x34c]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x100
or eax, ecx
jge 0x409531
push 0x100
mov ecx, esi
call fcn.00402130
mov eax, dword [esi]
push ebx
push 0x100
push eax
push 0x4592dc
push str.CanShu
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x409592
push ecx
push eax
call fcn.00438073
add esp, 8
test eax, eax
jl 0x40971b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40971b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
push str.gameyxdown.dat
mov word [ecx + eax*2], dx
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040bf20
add esp, 0xc
mov dword [esp + 0x24], 4
mov ebx, dword [eax]
mov eax, dword [edi + 0x2f4]
lea esi, [edi + 0x2f4]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x100
or eax, ecx
jge 0x4095f4
push 0x100
mov ecx, esi
call fcn.00402130
mov eax, dword [esi]
push ebx
push 0x100
push eax
push 0x4592dc
push 0x45a1e0
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or ebx, 0xffffffff
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409638
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x409653
push ecx
push eax
call fcn.00438073
add esp, 8
test eax, eax
jl 0x40971b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40971b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
call fcn.00420a7c
mov eax, dword [eax + 4]
push ebx
push str.Install
push 0x45a064
mov ecx, eax
call fcn.0041d3f7
mov dword [edi + 0x304], eax
call fcn.00420a7c
mov eax, dword [eax + 4]
push 0x4592dc
push str.DName
push 0x45a064
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0041d586
lea ecx, [edi + 0x2f0]
push eax
mov dword [esp + 0x28], 5
call fcn.00401dd0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x4096e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
lea esi, [edi + 0x350]
push eax
mov ecx, esi
call fcn.004021f0
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.004021f0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00401090
int3