Function at 0x407040
Capabilities:
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x45e0e2
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov eax, dword [esp + 0x150]
mov edi, dword [esp + 0x148]
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x154]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov dword [esi], vtable.TRun.0
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
push edi
lea edx, [esi + 4]
push 0x465afc
call fcn.00402740
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
add esp, 8
push edi
push 0x465b3c
call ebx
test eax, eax
je 0x4070f8
push ebp
push 0x465b3c
call ebx
test eax, eax
jne 0x4070f8
push edi
lea edx, [esi + 0x108]
push 0x465afc
call fcn.00402740
add esp, 8
jmp 0x40713b
push edi
push 0x465b3c
call ebx
test eax, eax
jne 0x407126
push ebp
push 0x465b3c
call ebx
test eax, eax
je 0x407126
push ebp
lea edx, [esi + 0x108]
push 0x465afc
call fcn.00402740
add esp, 8
jmp 0x40713b
push ebp
push edi
lea edx, [esi + 0x108]
push str._s_s
call fcn.00402740
add esp, 0xc
mov ecx, dword [esp + 0x20]
push ecx
push 0x465b3c
call ebx
lea edx, [esi + 0x310]
test eax, eax
jne 0x407160
push 0x465b3c
call fcn.00402740
add esp, 4
jmp 0x407172
mov eax, dword [esp + 0x20]
push eax
push 0x465afc
call fcn.00402740
add esp, 8
push edi
push 0x465b3c
call ebx
lea edx, [esi + 0x20c]
test eax, eax
jne 0x407193
push 0x465b3c
call fcn.00402740
add esp, 4
jmp 0x4071b6
push ebp
push edi
push str._s_s
call fcn.00402740
add esp, 0xc
lea ebp, [esi + 0x20c]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ecx, dword [esp + 0x18]
push ecx
push 0x4685a4
call ebx
mov ebp, dword [esp + 0x1c]
test eax, eax
push ebp
sete dl
push 0x465b3c
mov byte [esi + 0x928], dl
call ebx
lea edx, [esi + 0x929]
test eax, eax
jne 0x4071f2
push 0x465b3c
call fcn.00402740
add esp, 4
jmp 0x407200
push ebp
push 0x465afc
call fcn.00402740
add esp, 8
mov ebp, dword [esp + 0x14]
push ebp
push 0x465b3c
call ebx
lea edx, [esi + 0xa2d]
test eax, eax
jne 0x407225
push 0x465b3c
call fcn.0040fcd0
add esp, 4
jmp 0x407233
push ebp
push 0x465afc
call fcn.0040fcd0
add esp, 8
push edi
push str._sGameInfo_run.bat
lea edx, [esi + 0x414]
call fcn.00402740
push edi
push str._sGameInfo_run.vbs
lea edx, [esi + 0x518]
call fcn.00402740
push edi
push str._sGameInfo_reg.cfg
lea edx, [esi + 0x61c]
call fcn.00402740
push edi
push str._sGameInfo_toSystem
lea edx, [esi + 0x720]
call fcn.00402740
xor ebx, ebx
push 0x103
lea eax, [esp + 0x51]
push ebx
push eax
mov byte [esp + 0x58], bl
call fcn.004314b0
add esp, 0x2c
push 0x104
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx edx, byte [esp + 0x2c]
push edx
push 0x4685fc
lea edx, [esi + 0x824]
call fcn.00402740
add esp, 8
push esi
call fcn.00409000
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402eb0
push eax
lea eax, [esp + 0x20]
push str.Path______:
push eax
mov dword [esp + 0x14c], ebx
call fcn.004023e0
add esp, 0xc
push 0x465a78
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x14c], 1
call fcn.00402300
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40732e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x140], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x140], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40737a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 0x108]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402eb0
push eax
lea ecx, [esp + 0x20]
push str.Exe_______:
mov ebx, 2
push ecx
mov dword [esp + 0x14c], ebx
call fcn.004023e0
add esp, 0xc
push 0x465a78
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x14c], 3
call fcn.00402300
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x140], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40740e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x140], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 0x310]
push eax
lea ecx, [esp + 0x28]
call fcn.00402eb0
push eax
lea ecx, [esp + 0x2c]
push str.Param_____:
mov ebx, 4
push ecx
mov dword [esp + 0x14c], ebx
call fcn.004023e0
add esp, 0xc
push 0x465a78
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x14c], 5
call fcn.00402300
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x140], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x140], ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4074ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0042d298
add esp, 0x134
ret 0x10