Function at 0x4078e0
Capabilities:
Check if file exists
Print debug messages
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5453de
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x591d64]
xor eax, esp
mov dword [esp + 0x578], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x590]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
call fcn.00415458
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40793d
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x598], ebx
mov ecx, dword [esi + 0xe8]
push ecx
lea edx, [esp + 0x20]
push str._sGameInfoSelfConfig.ini
push edx
call fcn.0040de30
mov esi, dword [esp + 0x28]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4079aa
lea eax, [esi - 0x10]
mov dword [esp + 0x598], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407dd2
push 0x103
xor eax, eax
lea ecx, [esp + 0x69]
push ebx
push ecx
mov byte [esp + 0x64], bl
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov byte [esp + 0x6d], al
mov byte [esp + 0x70], bl
call fcn.00507960
add esp, 0xc
push 0x103
lea edx, [esp + 0x489]
push ebx
push edx
mov byte [esp + 0x490], bl
call fcn.00507960
add esp, 0xc
push 0x103
lea eax, [esp + 0x381]
push ebx
push eax
mov byte [esp + 0x388], bl
call fcn.00507960
add esp, 0xc
push 0x103
lea ecx, [esp + 0x171]
push ebx
push ecx
mov byte [esp + 0x178], bl
call fcn.00507960
add esp, 0xc
push 0x103
lea edx, [esp + 0x279]
push ebx
push edx
mov byte [esp + 0x280], bl
call fcn.00507960
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x14]
push 0xa
push 0xa
lea eax, [esp + 0x60]
push eax
push ecx
call fcn.00506656
add esp, 0x10
push esi
push 0x104
lea edx, [esp + 0x174]
push edx
push 0x56f8a7
push str.checkPath
lea eax, [esp + 0x6c]
push eax
call edi
push esi
push 0x104
lea ecx, [esp + 0x27c]
push ecx
push 0x56f8a7
push str.checkVerion
lea edx, [esp + 0x6c]
push edx
call edi
push esi
push 0x104
lea eax, [esp + 0x6c]
push eax
push 0x56f8a7
push str.instName
lea ecx, [esp + 0x6c]
push ecx
call edi
push esi
push 0x104
lea edx, [esp + 0x48c]
push edx
push 0x56f8a7
push str.instFile
lea eax, [esp + 0x6c]
push eax
call edi
push esi
push 0x104
lea ecx, [esp + 0x384]
push ecx
push 0x56f8a7
push str.instParam
lea edx, [esp + 0x6c]
push edx
call edi
push esi
push ebx
push str.checkType
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
je 0x407bf5
cmp eax, 2
je 0x407dfa
cmp eax, 3
jne 0x407da6
cmp eax, eax
jne 0x407d3a
lea ecx, [esp + 0x16c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407d3a
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x44]
call fcn.0040d8a0
push eax
lea eax, [esp + 0x24]
push str.Msg:_
push eax
mov byte [esp + 0x5a4], 6
call fcn.0040d960
add esp, 0xc
push str.__module_already_installed._n
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x5a4], 7
call fcn.0040db20
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407bbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x598], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407be5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x598], bl
mov eax, dword [esp + 0x40]
jmp 0x407cee
lea edx, [esp + 0x16c]
lea ecx, [esp + 0x18]
call fcn.00407ed0
lea ecx, [esp + 0x274]
mov byte [esp + 0x598], 1
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00506154
add esp, 8
cmp eax, ebx
jne 0x407d13
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040d8a0
push eax
lea ecx, [esp + 0x2c]
push str.Msg:_
push ecx
mov byte [esp + 0x5a4], 2
call fcn.0040d960
add esp, 0xc
push str.__module_already_installed._n
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x5a4], 3
call fcn.0040db20
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 0x407c93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x598], 2
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 0x407cbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x598], 1
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 0x407ce3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x598], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407d94
mov byte [esp + 0x598], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edx, [esp + 0x380]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.0040d8a0
push ecx
mov byte [esp + 0x5a0], 8
lea eax, [esp + 0x48c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.0040d8a0
push ecx
lea edx, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
mov byte [esp + 0x5a8], 9
call fcn.0040d8a0
mov eax, dword [esp + 0x30]
push eax
mov byte [esp + 0x5a8], bl
call fcn.00408090
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x1e
mov dword [esp + 0x14], eax
jl 0x407a5b
lea eax, [esi - 0x10]
mov dword [esp + 0x598], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x590]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.005043e7
add esp, 0x588
ret
lea ecx, [esp + 0x3c]
push ecx
push 0x20006
push ebx
lea edx, [esp + 0x178]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x407d3a
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040d8a0
push eax
lea edx, [esp + 0x48]
push str.Msg:_
push edx
mov byte [esp + 0x5a4], 4
call fcn.0040d960
add esp, 0xc
push str.__module_already_installed._n
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x5a4], 5
call fcn.0040db20
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x598], 4
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 0x407ebc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x598], bl
mov eax, dword [esp + 0x2c]
jmp 0x407cee