Function at 0x1001d910
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042d03
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10056018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x4c], esi
sub esp, 8
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x50], 0
call fcn.1002d570
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp eax, dword [ebx + 4]
je 0x1001dafd
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1001dafd
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x1001da13
mov edi, edi
push 0x10049e14
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.1002d570
add esp, 4
mov edx, eax
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1002d570
add esp, 4
mov edx, eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 2
call fcn.1002d570
cmp dword [ebp - 0x14], 8
jb 0x1001d9d6
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x1001d9fb
push dword [ebp - 0x40]
call edi
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xf8]
call fcn.1002d570
add esi, 0x30
cmp esi, dword [ebx + 4]
jne 0x1001d990
mov eax, dword [ebp - 0x48]
mov esi, eax
movzx edx, word [esi]
test dx, dx
jne 0x1001da23
cmp word [esi + 2], dx
je 0x1001da33
lea ecx, [ebp - 0xf8]
call fcn.1002d570
add esi, 2
jmp 0x1001da15
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x1001da50
xor ecx, ecx
jmp 0x1001da64
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001da55
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1002d570
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 3
call fcn.1002d570
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x1001da92
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x1001daaf
xor ecx, ecx
jmp 0x1001dac3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001dab4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1002d570
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 4
call fcn.1002d570
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x1001daf1
push dword [ebp - 0x28]
call edi
add esp, 4
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov esi, dword [ebp - 0x4c]
push 0x44
xorps xmm0, xmm0
lea eax, [ebp - 0x140]
push 0
push eax
movq qword [ebp - 0x60], xmm0
movq qword [ebp - 0x58], xmm0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x140], 0x44
call fcn.1002d570
mov byte [ebp - 4], 5
cmp dword [eax + 0x10], 0
jne 0x1001db47
mov ebx, dword [ebp - 0x50]
xor eax, eax
jmp 0x1001db63
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xf8]
call fcn.1002d570
cmp dword [eax + 0x14], 8
mov ebx, 1
jb 0x1001db63
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x1001db6b
mov esi, dword [esi]
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x140]
push ecx
push 0
push eax
push 0x8000400
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
test bl, 1
je 0x1001dbb6
cmp dword [ebp - 0x14], 8
jb 0x1001dba2
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
jb 0x1001dbc4
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test esi, esi
je 0x1001dbf0
push dword [ebp - 0x60]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov bl, 1
call esi
push dword [ebp - 0x5c]
call esi
jmp 0x1001dbf2
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xfc], eax
test byte [ebp - 0xb8], 1
mov dword [ebp - 0xf4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
je 0x1001dc40
mov eax, dword [ebp - 0xe8]
push dword [eax]
call edi
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setg_wchar_t___wchar_t___wchar_t__]
push 0
push 0
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setp_wchar_t___wchar_t__]
and dword [ebp - 0xb8], 0xfffffffe
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xbc], 0
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fc71
mov esp, ebp
pop ebp
ret