Function at 0x104b8ce
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
xor edi, edi
cmp dword [esi + 0xa4], ebx
je 0x104bc50
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x104bc50
cmp dword [esi + 0xa0], ebx
je 0x104bc36
cmp dword [esi + 0xa8], ebx
je 0x104bc36
push eax
call fcn.010561ca
test eax, eax
je 0x104bc36
push 1
push ebx
push 1
push dword [esi + 0x3c]
call fcn.01057010
mov edi, eax
cmp edi, ebx
jge 0x104b953
push 1
push 1
push ebx
push dword [esi + 0x3c]
call fcn.01057010
mov edi, eax
cmp edi, ebx
jl 0x104bc46
push ebx
push ebx
push 0x105
lea eax, [ebp - 0x318]
push eax
push 0xffffffffffffffff
push dword [esi + 0x3c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0x104aee4
push ebx
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetA]
test eax, eax
je 0x104bc02
push dword [esi + 0x3c]
push 0x100721c
push 4
call fcn.01055c69
add esp, 0xc
cmp dword [esi + 0xb0], ebx
je 0x104bbf4
push dword [esi + 0x44]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x320], eax
cmp eax, ebx
je 0x104bc32
xor ecx, ecx
cmp cx, word [eax]
je 0x104bc32
push 0x1003d00
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x104bb6a
push dword [esi + 0x44]
lea eax, [ebp - 0x210]
push dword [esi + 0x40]
push 0x100720c
push 0x105
push eax
call fcn.0103590d
add esp, 0x14
test eax, eax
jl 0x104bc32
push 0x38
lea eax, [ebp - 0x358]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x48]
add esp, 0xc
cmp eax, ebx
je 0x104ba26
mov dword [ebp - 0x348], eax
mov ecx, dword [0x10746bc]
mov dword [ebp - 0x354], ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x34c], ecx
mov ecx, dword [esi + 0x40]
push eax
mov dword [ebp - 0x358], 0x40
mov dword [ebp - 0x35c], 0x3c
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x340], 1
call fcn.01047cb3
push eax
lea eax, [ebp - 0x210]
push eax
push 0x10071f8
push 4
call fcn.01055c69
add esp, 0x10
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x104bb38
mov edi, 0x1f4
push 0x14
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x320], edi
call fcn.010552fc
push ebx
call fcn.0105506e
push edi
push dword [ebp - 0x324]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
mov ebx, 0x102
jmp 0x104bb06
cmp dword [ebp - 0x31c], 0x14
je 0x104bae5
push dword [ebp - 0x31c]
call fcn.01055382
inc dword [ebp - 0x31c]
cmp dword [ebp - 0x31c], 0xe
jbe 0x104baf8
add dword [ebp - 0x320], 0x12c
push dword [ebp - 0x320]
push dword [ebp - 0x324]
call edi
cmp eax, ebx
je 0x104bacb
push 0x14
call fcn.01055382
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
pop eax
cmp eax, dword [ebp - 0x33c]
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
xor ebx, ebx
jmp 0x104bb55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x104bb47
push 0x57
pop eax
cmp eax, ebx
jle 0x104bb53
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x10071d4
push 4
call fcn.01055c69
add esp, 0xc
jmp 0x104bc32
push 0x10071c8
push dword [ebp - 0x320]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x104bbed
lea ecx, [ebp - 0x374]
call fcn.01060532
push dword [esi + 0x44]
lea eax, [ebp - 0x210]
push dword [esi + 0x40]
push 0x100402c
push 0x105
push eax
call fcn.0103590d
add esp, 0x14
test eax, eax
jl 0x104bbe0
push ebx
push 0x1001fd8
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x374]
call fcn.010636e3
mov edi, eax
push edi
lea eax, [ebp - 0x210]
push eax
push 0x10071a4
push 4
call fcn.01055c69
add esp, 0x10
lea ecx, [ebp - 0x374]
call fcn.01060551
jmp 0x104bc32
push 0x1007168
jmp 0x104bbf9
push 0x100713c
push 2
call fcn.01055c2f
jmp 0x104bc32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x104bc11
push 0x57
pop eax
cmp eax, ebx
jle 0x104bc1d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push dword [esi + 0x3c]
push 0x1007104
push 2
call fcn.01055c69
add esp, 0x10
cmp edi, ebx
jl 0x104bc46
mov ecx, esi
call fcn.010480bc
test eax, eax
jne 0x104bc46
mov edi, 0x80040152
mov dword [esi + 0xb4], edi
mov eax, edi
jmp 0x104bc53
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret