Function at 0x10040d7
Capabilities:
Create process on windows

Disassembly:
push 0x4b8
mov eax, 0x100ba8c
call fcn.010089ad
mov eax, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x424], ebx
push 0x5b
lea eax, [ebp - 0x4c3]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x4c4], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, ebx
mov edi, 0x100171c
jge 0x100415d
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x100430e
cmp byte [eax + 0x19], 2
jb 0x100430e
push esi
push edi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
jmp 0x100430e
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x42c]
call fcn.01009671
mov esi, eax
cmp esi, ebx
jge 0x10041a7
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1004196
cmp byte [eax + 0x19], 2
jb 0x1004196
push esi
push edi
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
cmp dword [ebp + 0x10], ebx
jne 0x100430e
push ebx
push 0x7e
jmp 0x1004303
lea eax, [ebp - 0x4c4]
push eax
push dword [ebp - 0x424]
call fcn.0100aeab
mov esi, eax
cmp esi, ebx
jge 0x1004203
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x10041e0
cmp byte [eax + 0x19], 2
jb 0x10041e0
push esi
push edi
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
cmp dword [ebp + 0x10], ebx
jne 0x100430e
push ebx
cmp esi, 0xc0040205
jne 0x10041f9
push 0x79
jmp 0x1004303
push 0x86
jmp 0x1004303
cmp dword [ebp + 0x10], ebx
jne 0x10042c6
cmp dword [ebp - 0x47c], 2
jne 0x10042c6
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1004239
cmp byte [eax + 0x19], 4
jb 0x1004239
push edi
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010023b5
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x468]
push ebx
push eax
call sub.msvcrt.dll_memset
push dword [ebp - 0x42c]
lea eax, [ebp - 0x420]
push 0x1001768
push 0x208
push eax
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x464], 0x4000
mov dword [ebp - 0x458], 0x1001748
call fcn.01003395
lea eax, [ebp - 0x420]
mov dword [ebp - 0x454], eax
add esp, 0x1c
lea eax, [ebp - 0x468]
push eax
mov dword [ebp - 0x44c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10042ae
xor esi, esi
jmp 0x100430e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10042c2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100430e
push dword [ebp - 0x424]
call fcn.0100aa22
mov esi, eax
cmp esi, ebx
jge 0x100430e
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x10042f8
cmp byte [eax + 0x19], 2
jb 0x10042f8
push esi
push edi
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
cmp dword [ebp + 0x10], ebx
jne 0x100430e
push ebx
push 0x82
push dword [ebp - 0x428]
call fcn.01003075
mov ecx, dword [0x100d058]
push ebx
push dword [ebp - 0x42c]
call fcn.01007d51
lea eax, [ebp - 0x4c4]
push eax
call fcn.0100980d
cmp esi, ebx
jge 0x1004351
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1004351
cmp byte [eax + 0x19], 2
jb 0x1004351
push esi
push edi
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
mov eax, dword [ebp - 0x424]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1004365
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.01008a01
ret 0xc