Function at 0x403010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40f9d3
mov eax, dword fs:[0]
push eax
sub esp, 0x958
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x950], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x96c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x97c]
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
mov dword [esp + 0x44], ebp
mov ebx, ecx
jbe 0x403066
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x403074
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
push ebp
push edi
push ebp
lea eax, [esp + 0x78]
push eax
push ebp
call fcn.00405930
push 0
push 0
push 0x1004
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x64]
push ecx
push ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x64]
push edx
push 0
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
push 0x1000
push 0x34
mov edi, eax
push 0
push edi
call esi
push 4
push 0x1000
push 0x200
push 0
push edi
mov dword [esp + 0x30], eax
call esi
push 4
push 0x1000
push 0x200
push 0
push edi
mov dword [esp + 0x38], eax
call esi
push 4
push 0x1000
push 0x10
push 0
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x9c], 0x200
mov dword [esp + 0x64], 1
call esi
push 4
push 0x1000
push 8
push 0
push edi
mov dword [esp + 0x34], eax
call esi
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x974], eax
lea eax, [esp + 0xdc]
push eax
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMShellUtils::GetCUDesktopDirectory_void_
add esp, 4
push eax
lea esi, [esp + 0x34]
mov byte [esp + 0x978], 1
call fcn.004055b0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x974], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xdc]
push ecx
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMShellUtils::GetAUDesktopDirectory_void_
add esp, 4
push eax
mov byte [esp + 0x978], 2
call fcn.004055b0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x974], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jbe 0x4031c5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x34], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], eax
jbe 0x4031dd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
cmp esi, dword [esp + 0x60]
je 0x403542
cmp esi, eax
jb 0x4031f1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
lea ecx, [esp + 0xe0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
xor ebp, ebp
cmp dword [esp + 0x40], ebp
mov byte [esp + 0x974], 3
jle 0x40350f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0x34
lea eax, [esp + 0x78]
push eax
push ecx
push edi
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], edx
call esi
mov edx, dword [esp + 0x1c]
push edx
push ebp
push 0x1073
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push 0
push 0x34
lea ecx, [esp + 0x78]
push ecx
push edx
push edi
mov dword [esp + 0x8c], 1
mov dword [esp + 0x98], eax
call esi
mov eax, dword [esp + 0x1c]
push eax
push ebp
push 0x1073
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x20]
push 0
push 0x10
lea ecx, [esp + 0x58]
push ecx
push edx
push edi
mov dword [esp + 0x64], 1
call esi
mov eax, dword [esp + 0x20]
push eax
push ebp
push 0x100e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x2c]
push 0
push 8
lea ecx, [esp + 0x50]
push ecx
push edx
push edi
call esi
mov eax, dword [esp + 0x2c]
push eax
push ebp
push 0x1010
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 0x200
lea ecx, [esp + 0x16c]
push ecx
push edx
push edi
call esi
mov ecx, dword [esp + 0x28]
push 0
push 0x200
lea eax, [esp + 0x56c]
push eax
push ecx
push edi
call esi
mov eax, dword [esp + 0x20]
push 0
push 0x10
lea edx, [esp + 0x58]
push edx
push eax
push edi
call esi
mov edx, dword [esp + 0x2c]
push 0
push 8
lea ecx, [esp + 0x50]
push ecx
push edx
push edi
call esi
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0xc8]
push eax
mov byte [esp + 0x980], 4
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
lea ecx, [esp + 0xa4]
mov byte [esp + 0x974], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str..lnk
lea ecx, [esp + 0xc4]
call dword [0x4113b4]
lea ecx, [esp + 0xc0]
push ecx
call sub.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x4034e9
lea ecx, [esp + 0xf8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x1b]
mov byte [esp + 0x974], 7
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMQuickLaunch::constructor_void_
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x23]
mov byte [esp + 0x97c], 8
call sub.K8Common.dll_public:_bool___thiscall_GameMgr::GMQuickLaunch::ParseLinkFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test al, al
je 0x4034c3
lea ecx, [esp + 0x114]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x148]
mov byte [esp + 0x974], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x118]
mov byte [esp + 0x978], 0xa
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x13c], edx
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x164]
mov dword [esp + 0x144], ecx
push edx
lea ecx, [esp + 0x14c]
mov dword [esp + 0x144], eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x114]
push eax
call fcn.004056a0
lea ecx, [esp + 0x148]
mov byte [esp + 0x974], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x114]
mov byte [esp + 0x974], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x1b]
mov byte [esp + 0x974], 7
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMQuickLaunch::destructor_void_
lea ecx, [esp + 0xf8]
mov byte [esp + 0x974], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x974], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add ebp, 1
cmp ebp, dword [esp + 0x40]
jl 0x403213
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0xdc]
mov byte [esp + 0x974], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x38]
cmp esi, eax
jb 0x403536
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
add esi, 0x1c
jmp 0x4031c5
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push ecx
push edi
call esi
mov edx, dword [esp + 0x24]
push 0x8000
push 0
push edx
push edi
call esi
mov eax, dword [esp + 0x28]
push 0x8000
push 0
push eax
push edi
call esi
mov ecx, dword [esp + 0x20]
push 0x8000
push 0
push ecx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 4]
test eax, eax
je 0x4035a8
mov ebp, dword [ebp + 8]
sub ebp, eax
mov eax, 0x66666667
imul ebp
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
mov dword [esp + 0x974], 0xffffffff
mov esi, dword [esp + 0x34]
setne bl
test esi, esi
je 0x4035e4
mov edi, dword [esp + 0x38]
cmp esi, edi
je 0x4035db
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x4035c8
mov esi, dword [esp + 0x34]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x96c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x950]
xor ecx, esp
call fcn.0040e0e6
add esp, 0x964
ret