Function at 0x407b20
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x45dfa6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x59]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x60], 0
call fcn.004314b0
add esi, 4
push esi
push str._sGameInfo.reg
lea edx, [esp + 0x68]
mov dword [esp + 0x34], esi
call fcn.00402740
add esp, 0x14
lea ecx, [esp + 0x3c]
call fcn.0041c638
push 0
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x278], 0
call fcn.0041c6cd
test eax, eax
je 0x407e12
mov bl, 1
lea ebx, [ebx]
lea ecx, [esp + 0x3c]
call fcn.0041c33c
mov dword [esp + 0x24], eax
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407e22
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x274], bl
call fcn.0041c87b
push eax
lea edx, [esp + 0x38]
push str._s__
push edx
mov byte [esp + 0x27c], 2
call fcn.004023e0
push 0x4680bc
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x288], 3
call fcn.00402300
add esp, 0x18
mov byte [esp + 0x270], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x407c98
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x407c86
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x407c86
push eax
call fcn.004028c0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x407c7d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebp + 0x10]
mov dword [esp + 0x18], esi
jmp 0x407c98
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402da0
mov esi, dword [esp + 0x18]
mov byte [esp + 0x270], 3
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 0x407cc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 2
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 0x407ce8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], bl
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 0x407d0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push esi
push str.regedit.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
call fcn.0041c87b
push eax
lea edx, [esp + 0x34]
push str.RunReg____:
push edx
mov byte [esp + 0x27c], 5
call fcn.004023e0
push 0x465a78
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x288], 6
call fcn.00402300
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407db8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], bl
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 0x407ddf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x270], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 0
jne 0x407bc0
mov esi, dword [esp + 0x20]
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407e2c
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x274], 7
call fcn.00402eb0
push str.i8reg.reg
push eax
lea ecx, [esp + 0x28]
mov bl, 8
push ecx
mov byte [esp + 0x27c], bl
call fcn.00402300
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 9
call fcn.004030c0
mov byte [esp + 0x270], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 7
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 0x407ecb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408064
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407ef8
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push str._s__
push edx
mov byte [esp + 0x27c], 0xa
call fcn.004023e0
push 0x4680bc
push eax
lea eax, [esp + 0x34]
mov bl, 0xb
push eax
mov byte [esp + 0x288], bl
call fcn.00402300
add esp, 0x18
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x274], 0xc
call fcn.004030c0
mov byte [esp + 0x270], bl
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 0x407f79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 0xa
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 0x407fa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0
push esi
push str.regedit.exe
push str.open
push 0
call ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push str.RunReg____:
push edx
call fcn.004023e0
push 0x465a78
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x288], 0xd
call fcn.00402300
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
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 0x408016
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 0xa
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 0x40803e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x270], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40806a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40806a
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x103
lea ecx, [esp + 0x161]
push 0
push ecx
mov byte [esp + 0x168], 0
call fcn.004314b0
add esp, 0xc
push 0x104
lea edx, [esp + 0x160]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x15c]
push ecx
push str._sGameInfo.reg
lea edx, [esp + 0x5c]
call fcn.00402740
add esp, 8
push 0
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x44]
call fcn.0041c6cd
test eax, eax
je 0x408270
lea ecx, [esp + 0x3c]
call fcn.0041c33c
mov dword [esp + 0x24], eax
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x407e22
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x274], 0xe
call fcn.0041c87b
push eax
lea edx, [esp + 0x34]
push str._s__
push edx
mov byte [esp + 0x27c], 0xf
call fcn.004023e0
push 0x4680bc
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x288], 0x10
call fcn.00402300
add esp, 0x18
mov byte [esp + 0x270], 0x11
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4081b6
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4081a4
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4081a4
push eax
call fcn.004028c0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40819b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [esp + 0x28], esi
jmp 0x4081b6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00402da0
mov esi, dword [esp + 0x28]
mov byte [esp + 0x270], 0x10
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 0x4081de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 0xf
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408206
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 0xe
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40822e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push esi
push str.regedit.exe
push str.open
push 0
call ebp
lea eax, [esi - 0x10]
mov byte [esp + 0x270], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 0
jne 0x4080dd
mov byte [esp + 0x270], 0
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 0x408298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x270], 0xffffffff
call fcn.0041c65e
xor al, al
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0042d298
add esp, 0x260
ret