Function at 0x1000b400
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007be89
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x10098688]
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 edi, dword [ebp + 0xc]
lea esi, [ecx + 0xd4]
mov dword [ebp - 4], 0
mov eax, dword [esi]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x480], esi
jne 0x1000b45b
mov byte [ebp - 0x475], 1
jmp 0x1000b6bd
push 0x44
xorps xmm0, xmm0
lea eax, [ebp - 0x464]
push 0
push eax
movq qword [ebp - 0x474], xmm0
movq qword [ebp - 0x46c], xmm0
call fcn.1005ec70
xor eax, eax
push 0x3ff
push eax
mov word [ebp - 0x434], ax
mov byte [ebp - 0x414], al
lea eax, [ebp - 0x413]
push eax
mov dword [ebp - 0x464], 0x44
mov dword [ebp - 0x438], 1
call fcn.1005ec70
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x400
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [0x100985e8]
mov ecx, 0x100985e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 1
push dword [esi]
lea eax, [ebp - 0x47c]
push str._d__c__s
push eax
call fcn.100045a0
mov esi, dword [ebp - 0x47c]
add esp, 0xc
cmp dword [esi - 4], 1
mov byte [ebp - 0x475], 0
jle 0x1000b524
push dword [esi - 0xc]
lea ecx, [ebp - 0x47c]
call fcn.10004d60
mov esi, dword [ebp - 0x47c]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x464]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000b635
push 0xea60
push dword [ebp - 0x474]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x474]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1000b5b3
mov ecx, dword [ebp - 0x418]
cmp ecx, 0x103
je 0x1000b5b3
test ecx, ecx
jne 0x1000b597
mov byte [ebp - 0x475], 1
jmp 0x1000b602
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x1000b602
push ecx
push dword [ebp + 8]
push str._s__d
push edi
call fcn.100045a0
add esp, 0x10
jmp 0x1000b602
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x1000b602
push 0x10092608
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.10003f40
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1000cba0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x484]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000b602
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x474]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x470]
call edi
mov ecx, dword [ebp - 0x480]
push 0
push 0x100923f6
call fcn.10004bd0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000b684
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x1000b684
push 0x1009260c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.10003f40
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.1000cba0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x480]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000b684
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi - 8]
push esi
call fcn.1005b15f
add esp, 8
test eax, eax
js 0x1000b702
cmp eax, dword [esi - 8]
jg 0x1000b702
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000b6bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1000b6de
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x475]
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.1005c9a6
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.10004f00
int3