Function at 0x10005860
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100124c4
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10019024]
xor eax, esp
push eax
lea eax, [esp + 0x2d0]
mov dword fs:[0], eax
xor ebx, ebx
push 0x80
lea eax, [esp + 0x24c]
mov edi, ecx
mov esi, edx
push ebx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x250], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x13c]
push ecx
call fcn.10003120
lea ebp, [edi + 0xa4]
mov dword [esp + 0x2d8], ebx
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 4]
push eax
lea edx, [esp + 0x2c]
mov byte [esp + 0x2dc], 1
add edi, 0x68
push edx
mov dword [esp + 0x1c], eax
call fcn.10006cc0
mov esi, dword [esp + 0x28]
mov ebx, dword [edi + 0x18]
mov edi, dword [edi]
test esi, esi
je 0x10005919
cmp esi, edi
je 0x1000591f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x2c]
cmp edi, ebx
jne 0x10005933
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10005e4e
test esi, esi
jne 0x10005a23
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 0x18]
jne 0x1000594c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add edi, 0x10
lea esi, [esp + 0x13c]
call fcn.10003db0
push ebp
mov byte [esp + 0x2dc], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x140]
cmp eax, 8
je 0x10005a2a
cmp eax, 0xa
je 0x10005a2a
cmp dword [esp + 0x13c], 1
mov esi, 0x10
jne 0x10005a2f
mov ecx, dword [esp + 0x180]
cmp dword [esp + 0x194], esi
jae 0x100059ad
lea ecx, [esp + 0x180]
call fcn.10002f20
test eax, eax
je 0x10005a2f
mov eax, dword [esp + 0x18]
mov cl, byte [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax]
mov byte [esp + 0x3c], cl
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov edx, dword [ecx]
mov byte [esp + 0x4c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x4c], 0x927c0
call fcn.10005e90
push 0x927c0
push 0x10014ca8
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
jmp 0x10005e4e
mov esi, dword [esi]
jmp 0x10005941
mov esi, 0x10
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x104]
mov byte [esp + 0x2d8], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x2d8], 3
xor ebp, ebp
lea ecx, [esp + 0x120]
mov dword [esp + 0x1c], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x2d8], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xe8]
mov byte [esp + 0x2d8], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2d8], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
sub esp, 0x108
mov ebx, 7
mov byte [esp + 0x3e0], bl
mov ecx, esp
mov dword [esp + 0x12c], esp
push ecx
lea edi, [esp + 0x248]
call fcn.100032a0
lea edx, [esp + 0x1b8]
push edx
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x1dc]
push ecx
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x1ac]
call fcn.10006800
test al, al
jne 0x10005ba1
sub esp, 0x1c
lea eax, [esp + 0x104]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x1c
mov byte [esp + 0x310], 8
lea edx, [esp + 0x104]
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x1c
mov byte [esp + 0x32c], 9
lea eax, [esp + 0x158]
mov ecx, esp
mov dword [esp + 0xa8], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x1c
mov byte [esp + 0x348], 0xa
lea edx, [esp + 0x104]
mov ecx, esp
mov dword [esp + 0x98], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esp + 0x8c]
push eax
mov byte [esp + 0x34c], bl
call fcn.10006a20
jmp 0x10005bd2
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], esi
jae 0x10005bb8
lea eax, [esp + 0x98]
push eax
push 0x10014c80
push 2
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
mov esi, 0x10
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], esi
jae 0x10005be9
lea eax, [esp + 0x98]
push ebp
push eax
call dword [sym.imp.MSVCR90.dll__access]
add esp, 8
test eax, eax
jne 0x10005dd0
push 0x3c
lea ecx, [esp + 0x5c]
push ebp
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x58], 0x3c
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], str.open
cmp dword [esp + 0xac], esi
jb 0x10005c3e
mov edx, dword [esp + 0x98]
mov dword [esp + 0x68], edx
jmp 0x10005c49
lea eax, [esp + 0x98]
mov dword [esp + 0x68], eax
cmp dword [esp + 0xc8], esi
jb 0x10005c5f
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x6c], ecx
jmp 0x10005c6a
lea edx, [esp + 0xb4]
mov dword [esp + 0x6c], edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10005cc3
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], esi
jae 0x10005ca0
lea eax, [esp + 0x98]
push eax
push 0x10014cdc
push 2
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
mov dword [esp + 0x244], ebp
mov edi, 1
jmp 0x10005d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x98]
cmp dword [esp + 0xac], esi
jae 0x10005ce0
lea ecx, [esp + 0x98]
push eax
push ecx
push str.ShellExecuteExA__
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
mov edi, 1
add esp, 0x10
mov dword [esp + 0x244], edi
mov dword [esp + 0x2d8], ebx
mov eax, dword [esp + 0x148]
mov ebx, 0x10
cmp dword [esp + 0x15c], ebx
jae 0x10005d25
lea eax, [esp + 0x148]
mov ecx, dword [esp + 0x158]
mov esi, dword [sym.imp.MSVCR90.dll_memcpy_s]
push ecx
push eax
lea edx, [esp + 0x250]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x174]
add esp, 0x10
cmp dword [esp + 0x178], ebx
jae 0x10005d5a
lea eax, [esp + 0x164]
mov ecx, dword [esp + 0x174]
push ecx
push eax
lea edx, [esp + 0x290]
push 0x40
push edx
call esi
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add esp, 0x10
cmp eax, ebp
je 0x10005dd0
cmp eax, 0xffffffff
je 0x10005dd0
cmp byte [ecx + 0x1c], 0
mov esi, dword [esp + 0x20]
je 0x10005db1
mov eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24c]
mov dword [esp + 0x20], edi
lea edi, [ecx + 0xc]
push eax
add esi, 0xcc
call fcn.10010ae0
jmp 0x10005dd0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x248]
mov dword [esp + 0x18], edi
lea edi, [ecx + 0xc]
push eax
add esi, 0xbc
call fcn.10001510
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2d8], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe8]
mov byte [esp + 0x2d8], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x2d8], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x120]
mov byte [esp + 0x2d8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x104]
mov byte [esp + 0x2d8], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0x2d8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x13c]
push ecx
mov dword [esp + 0x2dc], 0xffffffff
call fcn.10003ce0
mov ecx, dword [esp + 0x2d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.10010d80
add esp, 0x2c8
ret