Function at 0x100d0aa4
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push esi
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov esi, dword [ebp + 0xc]
mov edi, eax
or dword [esp + 0x10], 0xffffffff
xor eax, eax
push 2
push 1
mov esi, dword [esi]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, esi
and esi, 0x3f
sar eax, 6
imul ecx, esi, 0x30
push edi
mov eax, dword [eax*4 + 0x1010f130]
push dword [eax + ecx + 0x18]
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
jne 0x100d0b02
xor edi, edi
mov esi, edi
jmp 0x100d0d03
mov esi, dword [ebp + 0xc]
push dword [esi]
call sym.ucrtbase.dll__close
mov edx, dword [esp + 0x1c]
or dword [esi], 0xffffffff
pop ecx
mov ecx, dword [esi + 4]
call fcn.100a4786
mov dword [esp + 0x18], eax
test eax, eax
je 0x100d0af9
xor ecx, ecx
call fcn.100d12a3
mov esi, eax
test esi, esi
jne 0x100d0b3a
xor edi, edi
mov esi, edi
jmp 0x100d0cf4
call fcn.100d0feb
mov dword [esp + 0x24], eax
test eax, eax
jne 0x100d0b4c
mov eax, 0x1000fd34
push 0x44
pop edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
xor eax, eax
push edi
push eax
lea eax, [esp + 0x40]
push eax
call sym.ucrtbase.dll__o_memset
mov ecx, dword [0x1010f130]
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x64], 0x100
jne 0x100d0b8a
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
jmp 0x100d0b9b
cmp dword [ebp + 8], 1
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
je 0x100d0b9e
mov eax, dword [ecx + 0x48]
mov dword [esp + 0x74], eax
xor edi, edi
mov eax, dword [ecx + 0x78]
mov ecx, 0x1000a32c
mov dword [esp + 0x78], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x100d0bb3
sub ecx, edx
sar ecx, 1
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
call fcn.1003abcd
lea ecx, [esp + 0x1c]
lea edi, [eax + 1]
call fcn.1003abcd
add edi, dword [esp + 0x20]
add eax, edi
push 2
push eax
mov dword [esp + 0x1c], eax
call sym.ucrtbase.dll__calloc_base
mov edi, eax
mov dword [esp + 0x28], edi
pop ecx
pop ecx
test edi, edi
je 0x100d0cce
push dword [esp + 0xc]
push dword [esp + 0x18]
push edi
call sym.ucrtbase.dll_wcscpy_s
add esp, 0xc
test eax, eax
je 0x100d0c1e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call sym.ucrtbase.dll__invoke_watson
push 0x1000a32c
push dword [esp + 0x18]
push edi
call sym.ucrtbase.dll_wcscat_s
add esp, 0xc
test eax, eax
jne 0x100d0c12
push dword [esp + 0x1c]
push dword [esp + 0x18]
push edi
call sym.ucrtbase.dll_wcscat_s
add esp, 0xc
test eax, eax
jne 0x100d0c12
mov ecx, dword [esp + 0xc]
call fcn.100d112b
mov ecx, eax
test ecx, ecx
je 0x100d0cce
sub eax, dword [esp + 0xc]
lea edi, [esp + 0x28]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esp + 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov edi, dword [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
xor eax, eax
push eax
push eax
push eax
push 1
push eax
push eax
push edi
push ecx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
jne 0x100d0c99
mov dword [esp + 0xc], eax
jmp 0x100d0cc2
mov eax, dword [esp + 0x18]
push dword [esp + 0x2c]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [esp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor eax, eax
mov esi, eax
push dword [esp + 0x14]
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100d0cd4
xor eax, eax
mov dword [esp + 0xc], eax
push edi
call sym.ucrtbase.dll__free_base
pop ecx
push dword [esp + 0x24]
call sym.ucrtbase.dll__free_base
pop ecx
test esi, esi
je 0x100d0cf0
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100d0d03
push eax
call sym.ucrtbase.dll_fclose
pop ecx
cmp dword [esp + 0x10], 0xffffffff
je 0x100d0d14
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret