Function at 0x4079c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491a50
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040afd0
mov eax, dword [ebx + 0x188]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401e30
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [esi], eax
call fcn.00407440
lea esi, [esp + 0x18]
mov eax, ebx
call fcn.00402550
lea esi, [esp + 0x24]
mov dword [esp + 0x48], 0
call fcn.00403220
mov byte [esp + 0x48], 1
call fcn.0043e9ec
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407a55
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x48], 2
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x407a90
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401de0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push 0x104
push edi
push 0x49a67c
push 0x49abc8
push str.info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0045d3d2
add esp, 8
test eax, eax
jl 0x407dfb
cmp eax, dword [edi - 8]
jg 0x407dfb
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.00401b30
lea esi, [esp + 0x1c]
mov eax, ebx
call fcn.00402600
mov byte [esp + 0x48], 3
mov ecx, dword [eax]
push str.gameyxdown.dat
push ecx
lea edx, [esp + 0x20]
push 0x49abf4
push edx
call fcn.00411ee0
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x407b5a
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401de0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push 0x104
push edi
push 0x49a67c
push str.FileName
push str.main
call esi
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0045d3d2
add esp, 8
test eax, eax
jl 0x407dfb
cmp eax, dword [edi - 8]
jg 0x407dfb
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [esp + 0x14]
mov word [edi + eax*2], cx
push edx
lea ecx, [esp + 0x30]
call fcn.00401b30
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x407bd7
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401de0
mov edi, dword [esp + 0x14]
push ebx
push 0x104
push edi
push 0x49a67c
push str.GameName
push str.main
call esi
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0045d3d2
add esp, 8
test eax, eax
jl 0x407dfb
cmp eax, dword [edi - 8]
jg 0x407dfb
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [esp + 0x14]
mov word [edi + eax*2], cx
push edx
lea ecx, [esp + 0x2c]
call fcn.00401b30
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x407c4a
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401de0
mov edi, dword [esp + 0x14]
push ebx
push 0x104
push edi
push 0x49a67c
push str.CanShu
push str.main
call esi
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0045d3d2
add esp, 8
test eax, eax
jl 0x407dfb
cmp eax, dword [edi - 8]
jg 0x407dfb
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [esp + 0x14]
mov word [edi + eax*2], cx
push edx
lea ecx, [esp + 0x3c]
call fcn.00401b30
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x407cbd
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401de0
mov edi, dword [esp + 0x14]
push ebx
push 0x104
push edi
push 0x49a67c
push str.GameId
push str.main
call esi
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0045d3d2
add esp, 8
test eax, eax
jl 0x407dfb
cmp eax, dword [edi - 8]
jg 0x407dfb
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [esp + 0x14]
mov word [edi + eax*2], cx
push edx
lea ecx, [esp + 0x34]
call fcn.00401b30
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x407d30
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401de0
mov edi, dword [esp + 0x14]
push ebx
push 0x104
push edi
push 0x49a67c
push 0x49ac54
push str.main
call esi
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0045d3d2
add esp, 8
test eax, eax
jl 0x407dfb
cmp eax, dword [edi - 8]
jg 0x407dfb
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [esp + 0x14]
mov word [edi + eax*2], cx
push edx
lea ecx, [esp + 0x38]
call fcn.00401b30
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x38], esp
push eax
lea ecx, [esp + 0x40]
call fcn.00407e10
mov ecx, dword [ebp + 8]
call fcn.00402720
add edi, 0xfffffff0
mov byte [esp + 0x48], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407db9
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea esi, [esp + 0x24]
call fcn.004028a0
add ebx, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407de6
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004010b0
int3