Function at 0x104be3b
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x107fa78]
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 0x104c1bd
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x104c1bd
cmp dword [esi + 0xa0], ebx
je 0x104c1a3
cmp dword [esi + 0xa8], ebx
je 0x104c1a3
push eax
call fcn.01056f43
test eax, eax
je 0x104c1a3
push 1
push ebx
push 1
push dword [esi + 0x3c]
call fcn.01057e61
mov edi, eax
cmp edi, ebx
jge 0x104bec0
push 1
push 1
push ebx
push dword [esi + 0x3c]
call fcn.01057e61
mov edi, eax
cmp edi, ebx
jl 0x104c1b3
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 0x104b359
push ebx
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetA]
test eax, eax
je 0x104c16f
push dword [esi + 0x3c]
push 0x10072fc
push 4
call fcn.0105e5ad
add esp, 0xc
cmp dword [esi + 0xb0], ebx
je 0x104c15f
push dword [esi + 0x44]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
mov dword [ebp - 0x320], eax
je 0x104c19f
cmp word [eax], bx
je 0x104c19f
push 0x1004144
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104c0d5
push dword [esi + 0x44]
lea eax, [ebp - 0x210]
push dword [esi + 0x40]
push 0x10072ec
push 0x105
push eax
call fcn.01034d76
add esp, 0x14
test eax, eax
jl 0x104c19f
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 0x104bf91
mov dword [ebp - 0x348], eax
mov ecx, dword [0x10821f4]
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.0104819f
push eax
lea eax, [ebp - 0x210]
push eax
push 0x10072d8
push 4
call fcn.0105e5ad
add esp, 0x10
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x104c0a3
mov edi, 0x1f4
push 0x14
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x320], edi
call fcn.0105dc05
push ebx
call fcn.0105d977
push edi
push dword [ebp - 0x324]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
mov ebx, 0x102
jmp 0x104c071
cmp dword [ebp - 0x31c], 0x14
je 0x104c050
push dword [ebp - 0x31c]
call fcn.0105dc8b
inc dword [ebp - 0x31c]
cmp dword [ebp - 0x31c], 0xe
jbe 0x104c063
add dword [ebp - 0x320], 0x12c
push dword [ebp - 0x320]
push dword [ebp - 0x324]
call edi
cmp eax, ebx
je 0x104c036
push 0x14
call fcn.0105dc8b
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 0x104c0c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x104c0b2
push 0x57
pop eax
cmp eax, ebx
jle 0x104c0be
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x10072b4
push 4
call fcn.0105e5ad
add esp, 0xc
jmp 0x104c19f
push 0x10072a8
push dword [ebp - 0x320]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104c158
lea ecx, [ebp - 0x374]
call fcn.01062d3b
push dword [esi + 0x44]
lea eax, [ebp - 0x210]
push dword [esi + 0x40]
push 0x1004478
push 0x105
push eax
call fcn.01034d76
add esp, 0x14
test eax, eax
jl 0x104c14b
push ebx
push 0x1002048
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x374]
call fcn.01066309
mov edi, eax
push edi
lea eax, [ebp - 0x210]
push eax
push 0x1007284
push 4
call fcn.0105e5ad
add esp, 0x10
lea ecx, [ebp - 0x374]
call fcn.01062d5a
jmp 0x104c19f
push 0x1007248
jmp 0x104c164
push 0x100721c
push 2
call fcn.0105e5ad
pop ecx
pop ecx
jmp 0x104c19f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x104c17e
push 0x57
pop eax
cmp eax, ebx
jle 0x104c18a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push dword [esi + 0x3c]
push 0x10071e4
push 2
call fcn.0105e5ad
add esp, 0x10
cmp edi, ebx
jl 0x104c1b3
mov ecx, esi
call fcn.010485a8
test eax, eax
jne 0x104c1b3
mov edi, 0x80040152
mov dword [esi + 0xb4], edi
mov eax, edi
jmp 0x104c1c0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret