Function at 0x40fb10
Capabilities:
Create process on windows
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426508
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x11c8
call fcn.00423640
mov eax, dword [0x435028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x11bc], esi
je 0x41016c
lea ecx, [ebp - 0x1134]
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 eax, [ebp - 0x116c]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00411d50
push 0xc6
lea ecx, [ebp - 0xde]
push edi
push ecx
mov word [ebp - 0xe0], di
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x119c], edi
mov dword [ebp - 0x1198], edi
mov dword [ebp - 0x1194], edi
lea edx, [ebp - 0x11a0]
push edx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 2
call fcn.004123e0
mov esi, dword [ebp - 0x119c]
cmp esi, dword [ebp - 0x1198]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x40fbcf
call ebx
lea eax, [ebp - 0x11a0]
mov edi, eax
mov dword [ebp - 0x1190], edi
mov dword [ebp - 0x118c], esi
jmp 0x40fbf0
mov esi, dword [ebp - 0x1198]
cmp dword [ebp - 0x119c], esi
jbe 0x40fc00
call ebx
test edi, edi
je 0x40fc0e
lea eax, [ebp - 0x11a0]
cmp edi, eax
je 0x40fc10
call ebx
cmp dword [ebp - 0x118c], esi
je 0x4100ff
test edi, edi
jne 0x40fc22
call ebx
mov ecx, dword [ebp - 0x118c]
cmp ecx, dword [edi + 8]
jb 0x40fc2f
call ebx
mov edx, dword [ebp - 0x118c]
push edx
lea ecx, [ebp - 0x1134]
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__]
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x11b8]
call sub.MFC80U.DLL_Ordinal_421
lea ecx, [ebp - 0x10fc]
mov byte [ebp - 4], 3
mov dword [ebp - 0x11a4], 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__::constructor_void_]
mov ebx, 4
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], bl
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_]
mov eax, dword [ebp - 0x11bc]
push eax
lea esi, [ebp - 0x1118]
mov byte [ebp - 4], 5
call fcn.0040fa00
add esp, 4
test al, al
jne 0x40fcd3
mov ecx, esi
mov byte [ebp - 4], bl
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, [ebp - 0x10fc]
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0x11b8]
mov byte [ebp - 4], 2
call sub.MFC80U.DLL_Ordinal_655
jmp 0x40fefe
mov eax, dword [ebp - 0x1114]
mov ecx, 8
cmp dword [ebp - 0x1100], ecx
jae 0x40fcec
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x111c], ecx
mov edi, dword [ebp - 0x1130]
jae 0x40fd00
lea edi, [ebp - 0x1130]
push eax
lea esi, [ebp - 0x10fc]
call fcn.0040f2f0
add esp, 4
test al, al
jne 0x40fd1b
mov byte [ebp - 4], bl
jmp 0x40fecd
push 0
push ebx
lea ecx, [ebp - 0x11c0]
push ecx
mov byte [ebp - 4], 6
push 2
lea ecx, [ebp - 0x11b8]
mov dword [ebp - 0x11c0], 0x7530
call sub.MFC80U.DLL_Ordinal_5914
mov eax, dword [ebp - 0x1130]
mov edi, 8
cmp dword [ebp - 0x111c], edi
jae 0x40fd59
lea eax, [ebp - 0x1130]
push 0
push 0
push 0x80400002
push 0
push eax
lea ecx, [ebp - 0x11b8]
call sub.MFC80U.DLL_Ordinal_5105
mov esi, eax
test esi, esi
mov dword [ebp - 0x11a4], esi
jne 0x40fdb3
lea ecx, [ebp - 0x1118]
mov byte [ebp - 4], bl
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, [ebp - 0x10fc]
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0x11b8]
mov byte [ebp - 4], 2
call sub.MFC80U.DLL_Ordinal_655
mov byte [ebp - 4], 2
jmp 0x40fef8
lea ecx, [ebp - 0x11d4]
call sub.MFC80U.DLL_Ordinal_556
mov byte [ebp - 4], 7
cmp dword [ebp - 0x10e4], edi
mov eax, dword [ebp - 0x10f8]
jae 0x40fdd6
lea eax, [ebp - 0x10f8]
push 0
push 0x9001
push eax
lea ecx, [ebp - 0x11d4]
call sub.MFC80U.DLL_Ordinal_5091
test eax, eax
je 0x40fe1e
lea ecx, [ecx]
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
push 0x800
lea eax, [ebp - 0x10e0]
push eax
mov ecx, esi
call edx
test eax, eax
jbe 0x40fe1e
push eax
lea eax, [ebp - 0x10e0]
push eax
lea ecx, [ebp - 0x11d4]
call sub.MFC80U.DLL_Ordinal_6291
jmp 0x40fdf0
lea ecx, [ebp - 0x11d4]
call sub.MFC80U.DLL_Ordinal_2904
push 0xa
push 0x64
lea ecx, [ebp - 0xe0]
push ecx
push edx
push eax
call dword [sym.imp.MSVCR80.dll__ui64tow_s]
add esp, 0x14
lea ecx, [ebp - 0x11d4]
call sub.MFC80U.DLL_Ordinal_1443
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea ecx, [ebp - 0x11d4]
mov byte [ebp - 4], 6
call sub.MFC80U.DLL_Ordinal_744
lea ecx, [ebp - 0x1188]
mov dword [ebp - 4], 5
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_]
push str.Size
lea edx, [ebp - 0x1188]
mov ebx, str.PatchSize
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 9
call fcn.00412850
test al, al
je 0x40ff2b
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x1188]
call dword [sym.imp.MSVCP80.dll_public:_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::compare_wchar_t_const__const]
test eax, eax
je 0x40ff61
lea ecx, [ebp - 0x1188]
mov byte [ebp - 4], 5
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 byte [ebp - 4], 4
lea ecx, [ebp - 0x1118]
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, [ebp - 0x10fc]
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0x11b8]
mov byte [ebp - 4], 2
call sub.MFC80U.DLL_Ordinal_655
mov edi, dword [ebp - 0x1190]
test edi, edi
jne 0x40ff08
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x118c]
cmp eax, dword [edi + 8]
jb 0x40ff19
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [ebp - 0x118c], 0x1c
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jmp 0x40fbf0
mov eax, dword [ebp - 0x10f8]
mov esi, 8
cmp dword [ebp - 0x10e4], esi
jae 0x40ff44
lea eax, [ebp - 0x10f8]
lea edx, [ebp - 0x8e0]
push edx
push 0x800
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40ff66
jmp 0x40feb9
mov esi, 8
push 0x427d0c
lea ecx, [ebp - 0x1150]
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__]
push str.Command
lea edx, [ebp - 0x1150]
mov ebx, str.PatchCommand
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0xa
call fcn.00412850
test al, al
je 0x40ffc9
cmp dword [ebp - 0x1138], esi
mov ecx, dword [ebp - 0x114c]
jae 0x40ffae
lea ecx, [ebp - 0x114c]
cmp dword [ebp - 0x10e4], esi
mov eax, dword [ebp - 0x10f8]
jae 0x40ffc2
lea eax, [ebp - 0x10f8]
push 1
push 0
push ecx
jmp 0x40ffe3
cmp dword [ebp - 0x10e4], esi
mov eax, dword [ebp - 0x10f8]
jae 0x40ffdd
lea eax, [ebp - 0x10f8]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1150]
jbe 0x41007e
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, [ebp - 0x1188]
mov byte [ebp - 4], 5
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, [ebp - 0x1118]
mov byte [ebp - 4], 4
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, [ebp - 0x10fc]
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0x11b8]
mov byte [ebp - 4], 2
call sub.MFC80U.DLL_Ordinal_655
lea ebx, [ebp - 0x11a0]
mov byte [ebp - 4], 1
call fcn.00404130
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 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, [ebp - 0x1134]
mov dword [ebp - 4], 0xffffffff
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 al, 1
jmp 0x41016e
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, [ebp - 0x1188]
mov byte [ebp - 4], 5
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, [ebp - 0x1118]
mov byte [ebp - 4], 4
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, [ebp - 0x10fc]
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0x11b8]
mov byte [ebp - 4], 2
call sub.MFC80U.DLL_Ordinal_655
lea ebx, [ebp - 0x11a0]
mov byte [ebp - 4], 1
call fcn.00404130
jmp 0x410149
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x119c]
test esi, esi
je 0x410135
mov edi, dword [ebp - 0x1198]
cmp esi, edi
je 0x410126
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 0x410117
mov ecx, dword [ebp - 0x119c]
push ecx
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
xor eax, eax
mov dword [ebp - 0x119c], eax
mov dword [ebp - 0x1198], eax
mov dword [ebp - 0x1194], eax
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 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, [ebp - 0x1134]
mov dword [ebp - 4], 0xffffffff
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_]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422de8
mov esp, ebp
pop ebp
ret