Function at 0x401000
Capabilities:
Check if file exists
Get file attributes
Print debug messages
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45d6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
push 0x104
push edi
push 0
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push edi
lea ecx, [esp + 0x48]
call fcn.00402eb0
push str.GameInfoSelfConfig.ini
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x74], 0
call fcn.00402300
add esp, 0xc
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401097
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4010ef
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4010ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042d298
add esp, 0x58
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ebx, [edi + 0x208]
mov dword [esp + 0x20], 1
add edi, 0x104
mov edx, dword [esp + 0x20]
push 0xa
push 0xa
lea ecx, [esp + 0x58]
xor eax, eax
push ecx
push edx
mov byte [esp + 0x60], 0
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov byte [esp + 0x69], al
call fcn.0042db1e
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
push 0x104
push edi
push 0x465b3c
push str.InstName
lea ecx, [esp + 0x64]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
push 0xa
push ebx
push 0x465b3c
push str.CheckType
lea eax, [esp + 0x64]
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push 0x104
add eax, 0x212
push eax
push 0x465b3c
push str.CheckPath
lea edx, [esp + 0x64]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push 0x104
add eax, 0x316
push eax
push 0x465b3c
push str.CheckVerion
lea ecx, [esp + 0x64]
push ecx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push 0x104
add eax, 0x41a
push eax
push 0x465b3c
push str.InstFile
lea eax, [esp + 0x64]
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push 0x104
add eax, 0x51e
push eax
push 0x465b3c
push str.InstParam
lea edx, [esp + 0x64]
push edx
call esi
push ebx
call fcn.0042d397
add esp, 4
cmp eax, 1
jne 0x4012c0
mov ecx, dword [esp + 0x18]
call fcn.004014e0
test al, al
jne 0x40122e
mov ecx, dword [esp + 0x18]
call fcn.004015d0
jmp 0x40148f
push edi
lea ecx, [esp + 0x38]
call fcn.00402eb0
push eax
lea eax, [esp + 0x50]
push str.GameCheck:___check_ver_success.
push eax
mov byte [esp + 0x74], 3
call fcn.004023e0
add esp, 0xc
push 0x465a78
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x74], 4
call fcn.00402300
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40128d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x34]
jmp 0x401473
push ebx
call fcn.0042d397
add esp, 4
cmp eax, 2
jne 0x4013a2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push 0x20006
push 0
add eax, 0x212
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401310
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
call fcn.004015d0
jmp 0x40148f
push edi
lea ecx, [esp + 0x34]
call fcn.00402eb0
push eax
lea eax, [esp + 0x2c]
push str.GameCheck:___check_Reg_Exist_success.
push eax
mov byte [esp + 0x74], 5
call fcn.004023e0
add esp, 0xc
push 0x465a78
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x74], 6
call fcn.00402300
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40136f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401394
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x30]
jmp 0x401473
push ebx
call fcn.0042d397
add esp, 4
cmp eax, 3
jne 0x40148f
mov eax, dword [esp + 0x18]
add eax, 0x212
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [esp + 0x18]
add eax, 0x212
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4013e6
mov ecx, dword [esp + 0x18]
call fcn.004015d0
jmp 0x40148f
push edi
lea ecx, [esp + 0x4c]
call fcn.00402eb0
push eax
lea ecx, [esp + 0x44]
push str.GameCheck:___check_Dir_or_file_Exist_success.
push ecx
mov byte [esp + 0x74], 7
call fcn.004023e0
add esp, 0xc
push 0x465a78
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x74], 8
call fcn.00402300
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 7
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40146a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40148f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x14
mov dword [esp + 0x20], eax
jl 0x40110f
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x4010d0