Function at 0x10021120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10043447
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10c]
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x28], eax
call fcn.1002c0b0
add esp, 4
xor edi, edi
mov dword [esp + 0x104], edi
push 0xb
mov ebx, 7
push str.restart.hzt
lea esi, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
call fcn.100025e0
mov edx, esi
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x10c], 1
call fcn.10024290
add esp, 8
mov ebp, 8
mov byte [esp + 0x104], 3
cmp dword [esp + 0x40], ebp
jb 0x100211e0
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edi
mov word [esp + 0x30], di
call fcn.10024720
add esp, 4
test al, al
jne 0x10021240
cmp dword [esp + 0x64], ebp
jb 0x10021211
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x9c], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
jb 0x10021484
mov ecx, dword [esp + 0x88]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10021484
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x50]
call fcn.1001f300
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x108], 4
call fcn.10023c50
add esp, 4
cmp dword [esp + 0x7c], edi
jne 0x100212d1
cmp dword [esp + 0x80], ebp
jb 0x1002127f
mov ecx, dword [esp + 0x6c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x64], ebp
mov word [esp + 0x6c], di
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], ebx
jb 0x100212a2
mov edx, dword [esp + 0x50]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x9c], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
jb 0x10021484
mov eax, dword [esp + 0x88]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10021484
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x6c]
push 0x3b
push edx
mov byte [esp + 0x110], 5
call fcn.100252a0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, edi
je 0x1002131c
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1002132a
lea esi, [esp + 0x14]
call fcn.1000ac00
jmp 0x10021269
xor edi, edi
lea esi, [esp + 0x14]
call fcn.1000aac0
mov ecx, eax
mov eax, dword [ecx + 0x14]
push 0x10048af0
mov edi, 3
call fcn.100098d0
test eax, eax
jne 0x1002145d
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x1c]
jbe 0x10021361
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x14]
push esi
push eax
lea ebx, [esp + 0x4c]
mov esi, eax
call fcn.10021f40
mov ecx, esi
call fcn.1000aa50
cmp eax, 3
jne 0x10021461
xor edi, edi
call fcn.1000aac0
push eax
lea esi, [esp + 0xdc]
call fcn.10001f00
mov edi, 1
lea esi, [esp + 0x14]
mov byte [esp + 0x104], 6
call fcn.1000aac0
push eax
lea esi, [esp + 0xc0]
call fcn.10001f00
mov edi, 2
lea esi, [esp + 0x14]
mov byte [esp + 0x104], 7
call fcn.1000aac0
push eax
lea esi, [esp + 0xa4]
call fcn.10001f00
cmp dword [esp + 0xd4], ebp
mov edx, dword [esp + 0xc0]
jae 0x100213f3
lea edx, [esp + 0xc0]
cmp dword [esp + 0xb8], ebp
mov ecx, dword [esp + 0xa4]
jae 0x1002140a
lea ecx, [esp + 0xa4]
cmp dword [esp + 0xf0], ebp
mov eax, dword [esp + 0xdc]
jae 0x10021421
lea eax, [esp + 0xdc]
push 1
push edx
push ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x20]
push eax
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0xa0]
call fcn.10001f30
lea ecx, [esp + 0xbc]
call fcn.10001f30
lea ecx, [esp + 0xd8]
call fcn.10001f30
lea esi, [esp + 0x14]
call fcn.1000ac00
lea ecx, [esp + 0x68]
call fcn.10001f30
lea ecx, [esp + 0x4c]
call fcn.10001f30
lea ecx, [esp + 0x84]
call fcn.10001f30
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.1003ec9d
add esp, 0xf4
ret 4