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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcd0
mov eax, dword [0x1001e0c0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [0x100208e0], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x100208dc], ecx
mov edx, dword [ebp + 0x10]
mov dword [0x100208d8], edx
mov byte [ebp - 0xc60], 0
push 0x7ff
push 0
lea eax, [ebp - 0xc5f]
push eax
call fcn.1000a920
add esp, 0xc
mov byte [ebp - 0x418], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x417]
push ecx
call fcn.1000a920
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.1000a920
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x460]
push eax
call fcn.1000a920
add esp, 0xc
mov dword [ebp - 0x460], 0x44
xor ecx, ecx
mov word [ebp - 0x430], cx
mov dword [ebp - 0x434], 1
push 0x1001f8d8
call fcn.10009920
push 0x1001f4d8
call fcn.10009920
push 0x1001f0d8
call fcn.10009920
call fcn.100056d0
movzx edx, al
cmp edx, 1
jne 0x1000746d
push 0x1001f4d8
push 0x1001f8d8
push str.__s___s
push 0x800
lea eax, [ebp - 0xc60]
push eax
call fcn.1000b55e
add esp, 0x14
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x460]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc60]
push eax
push 0x1001f8d8
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10007468
mov byte [ebp - 1], 0
jmp 0x100074fd
push 0x400
lea ecx, [ebp - 0x418]
push ecx
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0xc9c], eax
mov ecx, 0xd
mov esi, str._s__d__c_cmd.exe__d__c_cmd.exe__d__c_start______s___s
lea edi, [ebp - 0xc98]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1001f4d8
push 0x1001f8d8
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0xc98]
push eax
push 0x400
lea ecx, [ebp - 0xc60]
push ecx
call fcn.1000b55e
add esp, 0x18
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x460]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xc60]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100074fd
mov byte [ebp - 1], 0
movsx eax, byte [0x1001f0d8]
cmp eax, 0x31
jne 0x1000765a
push 0x1001f8d8
lea ecx, [ebp - 0xcc0]
call fcn.10003070
push 0xffffffffffffffff
push 0x1001a5ec
lea ecx, [ebp - 0xcc0]
call fcn.10007730
mov dword [ebp - 0xca0], eax
cmp dword [ebp - 0xca0], 0xffffffff
je 0x10007555
mov ecx, dword [ebp - 0xca0]
add ecx, 1
push ecx
push 0
lea ecx, [ebp - 0xcc0]
call fcn.10003390
mov byte [ebp - 0xca2], 0
mov byte [ebp - 0xca1], 1
mov dword [ebp - 0xcc4], 0
jmp 0x1000757e
mov edx, dword [ebp - 0xcc4]
add edx, 1
mov dword [ebp - 0xcc4], edx
cmp dword [ebp - 0xcc4], 0x78
jge 0x100075c9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xccc], esp
lea eax, [ebp - 0xcc0]
push eax
call fcn.100030b0
call fcn.10003cd0
add esp, 0x1c
mov byte [ebp - 0xca2], al
movzx ecx, byte [ebp - 0xca2]
cmp ecx, 1
je 0x100075c5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100075c7
jmp 0x100075c9
jmp 0x1000756f
movzx edx, byte [ebp - 0xca2]
test edx, edx
jne 0x100075e1
lea ecx, [ebp - 0xcc0]
call fcn.100030f0
jmp 0x1000765a
mov dword [ebp - 0xcc8], 0
jmp 0x100075fc
mov eax, dword [ebp - 0xcc8]
add eax, 1
mov dword [ebp - 0xcc8], eax
cmp dword [ebp - 0xcc8], 0x78
jge 0x1000764f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xcd0], esp
lea edx, [ebp - 0xcc0]
push edx
call fcn.100030b0
call fcn.10003cd0
add esp, 0x1c
mov byte [ebp - 0xca2], al
movzx eax, byte [ebp - 0xca2]
test eax, eax
jne 0x10007642
lea ecx, [ebp - 0xcc0]
call fcn.100030f0
jmp 0x1000765a
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100075ed
lea ecx, [ebp - 0xcc0]
call fcn.100030f0
pop edi
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1000a90e
mov esp, ebp
pop ebp
ret