Function at 0x407520
Capabilities:
Create process on windows
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x545468
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x591d64]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407577
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 + 0x168], 0
mov ecx, dword [esi + 0xe8]
push ecx
lea edx, [esp + 0x20]
push str._sGameInfo.reg
push edx
call fcn.0040de30
push 0x103
lea eax, [esp + 0x65]
push 0
push eax
mov byte [esp + 0x6c], 0
call fcn.00507960
add esp, 0x18
push 0
push 0x25
lea ecx, [esp + 0x5c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4075ec
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x168], 1
call fcn.00418ed1
mov byte [esp + 0x168], 2
mov ecx, dword [esp + 0x1c]
push 0
push ecx
lea ecx, [esp + 0x44]
call fcn.00418f66
test eax, eax
je 0x40783b
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x3c]
call fcn.00418bd5
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], eax
call fcn.00419159
push eax
lea eax, [esp + 0x38]
push str._s__
push eax
mov byte [esp + 0x174], 3
call fcn.0040d960
push 0x56f07c
push eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x180], 4
call fcn.0040db20
add esp, 0x18
mov byte [esp + 0x168], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4076e0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4076ce
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4076ce
push eax
call fcn.0040e260
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4076c5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebp + 0x10]
mov dword [esp + 0x18], edi
jmp 0x4076e0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0040e1a0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x168], 4
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 0x407708
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x168], 3
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 0x407730
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x168], 2
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 0x407758
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
lea ecx, [esp + 0x58]
push ecx
push edi
push str.regedit.exe
push str.open
push 0
call ebx
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x40]
call fcn.00419159
push eax
lea eax, [esp + 0x28]
push str.Msg:regedit_succeed_
push eax
mov byte [esp + 0x174], 6
call fcn.0040d960
push 0x56ece8
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x180], 7
call fcn.0040db20
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 edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4077e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x168], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407808
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x168], 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 0x407830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 0
jne 0x407633
lea ecx, [esp + 0x3c]
call fcn.00418aef
lea ecx, [esp + 0x3c]
mov byte [esp + 0x168], 1
call fcn.00418ef7
lea eax, [edi - 0x10]
mov byte [esp + 0x168], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407879
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x168], 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 0x4078a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.005043e7
add esp, 0x158
ret