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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420848
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x11c8
call fcn.0041e070
mov eax, dword [0x42d028]
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 0x40a7cc
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.0040c5a0
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.0040cc20
mov esi, dword [ebp - 0x119c]
cmp esi, dword [ebp - 0x1198]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x40a22f
call ebx
lea eax, [ebp - 0x11a0]
mov edi, eax
mov dword [ebp - 0x1190], edi
mov dword [ebp - 0x118c], esi
jmp 0x40a250
mov esi, dword [ebp - 0x1198]
cmp dword [ebp - 0x119c], esi
jbe 0x40a260
call ebx
test edi, edi
je 0x40a26e
lea eax, [ebp - 0x11a0]
cmp edi, eax
je 0x40a270
call ebx
cmp dword [ebp - 0x118c], esi
je 0x40a75f
test edi, edi
jne 0x40a282
call ebx
mov ecx, dword [ebp - 0x118c]
cmp ecx, dword [edi + 8]
jb 0x40a28f
call ebx
mov edx, dword [ebp - 0x118c]
push edx
lea ecx, [ebp - 0x1134]
call dword [0x42162c]
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.0040a060
add esp, 4
test al, al
jne 0x40a333
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 0x40a55e
mov eax, dword [ebp - 0x1114]
mov ecx, 8
cmp dword [ebp - 0x1100], ecx
jae 0x40a34c
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x111c], ecx
mov edi, dword [ebp - 0x1130]
jae 0x40a360
lea edi, [ebp - 0x1130]
push eax
lea esi, [ebp - 0x10fc]
call fcn.00409910
add esp, 4
test al, al
jne 0x40a37b
mov byte [ebp - 4], bl
jmp 0x40a52d
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 0x40a3b9
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 0x40a413
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 0x40a558
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 0x40a436
lea eax, [ebp - 0x10f8]
push 0
push 0x9001
push eax
lea ecx, [ebp - 0x11d4]
call sub.MFC80U.DLL_Ordinal_5091
test eax, eax
je 0x40a47e
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 0x40a47e
push eax
lea eax, [ebp - 0x10e0]
push eax
lea ecx, [ebp - 0x11d4]
call sub.MFC80U.DLL_Ordinal_6291
jmp 0x40a450
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.0040d090
test al, al
je 0x40a58b
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 0x40a5c1
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 0x40a568
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x118c]
cmp eax, dword [edi + 8]
jb 0x40a579
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 0x40a250
mov eax, dword [ebp - 0x10f8]
mov esi, 8
cmp dword [ebp - 0x10e4], esi
jae 0x40a5a4
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 0x40a5c6
jmp 0x40a519
mov esi, 8
push 0x4218f0
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.0040d090
test al, al
je 0x40a629
cmp dword [ebp - 0x1138], esi
mov ecx, dword [ebp - 0x114c]
jae 0x40a60e
lea ecx, [ebp - 0x114c]
cmp dword [ebp - 0x10e4], esi
mov eax, dword [ebp - 0x10f8]
jae 0x40a622
lea eax, [ebp - 0x10f8]
push 1
push 0
push ecx
jmp 0x40a643
cmp dword [ebp - 0x10e4], esi
mov eax, dword [ebp - 0x10f8]
jae 0x40a63d
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 0x40a6de
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.0040a7f0
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 0x40a7ce
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.0040a7f0
jmp 0x40a7a9
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x119c]
test esi, esi
je 0x40a795
mov edi, dword [ebp - 0x1198]
cmp esi, edi
je 0x40a786
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 0x40a777
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.0041d7b2
mov esp, ebp
pop ebp
ret