Function at 0x10007959
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x10003548]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x408], ecx
mov ebx, esi
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x430], 0x200
test eax, eax
je 0x10007c94
cmp word [eax], si
je 0x10007c94
test edi, edi
je 0x10007c94
cmp word [edi], si
je 0x10007c94
lea eax, [ebp - 0x40c]
push eax
push esi
push edi
call fcn.100076a3
test eax, eax
js 0x10007a29
mov eax, dword [ebp - 0x40c]
add eax, eax
push eax
push esi
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10007a2b
lea eax, [ebp - 0x40c]
push eax
push ebx
push edi
call fcn.100076a3
test eax, eax
jns 0x10007a29
push ebx
call fcn.100076a3
mov ebx, esi
test ebx, ebx
mov ecx, dword [ebp - 0x408]
cmovne edi, ebx
xor edx, edx
test ecx, ecx
je 0x10007b78
cmp word [ecx], dx
je 0x10007b78
lea eax, [ebp - 0x428]
push eax
push 0x20019
push edi
push 0x80000000
call fcn.100076a3
mov esi, eax
test esi, esi
js 0x10007c99
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push dword [0x1000c338]
push dword [ebp - 0x428]
call fcn.100076a3
mov esi, eax
test esi, esi
js 0x10007c99
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x424]
push eax
push 0x20019
push ecx
push dword [ebp - 0x42c]
call fcn.100076a3
mov esi, eax
test esi, esi
js 0x10007c99
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push dword [0x1000c33c]
push dword [ebp - 0x424]
call fcn.100076a3
mov esi, eax
test esi, esi
js 0x10007c99
lea eax, [ebp - 0x414]
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0x418]
push eax
push ecx
push dword [ebp - 0x41c]
call fcn.100076a3
mov esi, eax
mov eax, 0x80070002
test esi, esi
jns 0x10007b0e
cmp esi, eax
jne 0x10007c99
cmp esi, eax
je 0x10007b31
test esi, esi
js 0x10007b70
cmp dword [ebp - 0x418], 1
je 0x10007b28
cmp dword [ebp - 0x418], 2
jne 0x10007b31
cmp dword [ebp - 0x414], 2
ja 0x10007b70
lea eax, [ebp - 0x414]
push eax
xor eax, eax
push eax
lea eax, [ebp - 0x418]
push eax
push dword [0x1000c360]
push dword [ebp - 0x41c]
call fcn.100076a3
mov esi, eax
test esi, esi
js 0x10007c99
cmp dword [ebp - 0x414], 0
ja 0x10007b70
mov esi, 0x80004005
jmp 0x10007c99
mov ecx, dword [ebp - 0x408]
xor edx, edx
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x10007baa
cmp word [eax], dx
je 0x10007baa
lea eax, [ebp - 0x40c]
push eax
push ecx
push edi
mov dword [ebp - 0x40c], edx
call fcn.100076a3
mov esi, eax
test esi, esi
js 0x10007baa
cmp dword [ebp - 0x40c], 0
jne 0x10007c19
push 3
push dword [ebp - 0x420]
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x10007c0d
push 0x400
xor esi, esi
lea eax, [ebp - 0x404]
push esi
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
push esi
mov esi, dword [ebp - 0x420]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
js 0x10007c01
lea eax, [ebp - 0x404]
mov dword [ebp - 0x410], eax
jmp 0x10007c07
mov dword [ebp - 0x410], esi
xor eax, eax
mov esi, eax
jmp 0x10007c1b
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x3c
push eax
lea eax, [ebp - 0x46c]
push eax
call sub.msvcr100.dll_memset
mov ecx, dword [ebp - 0x408]
add esp, 0xc
mov dword [ebp - 0x460], ecx
mov ecx, dword [ebp - 0x410]
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x46c], 0x3c
mov dword [ebp - 0x468], 0x101
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x450], 1
mov dword [ebp - 0x444], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10007c99
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10007c99
and esi, 0xffff
or esi, 0x80070000
jmp 0x10007c99
mov esi, 0x80070057
push ebx
call fcn.100076a3
lea eax, [ebp - 0x428]
push eax
call fcn.100076a3
lea eax, [ebp - 0x42c]
push eax
call fcn.100076a3
lea eax, [ebp - 0x424]
push eax
call fcn.100076a3
lea eax, [ebp - 0x41c]
push eax
call fcn.100076a3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100030b9
leave
ret 0x10