Function at 0x10005874
Capabilities:
Create process on windows

Disassembly:
push 0x54
mov eax, 0x100161b0
call fcn.10014ed5
mov dword [ebp - 0x38], edx
mov esi, ecx
mov dword [ebp - 0x28], esi
mov eax, dword [0x1002015c]
cmp eax, 0x1002015c
je 0x100058b8
test byte [eax + 0x3c], 1
je 0x100058b8
cmp byte [eax + 0x39], 4
jb 0x100058b8
push esi
push 0x1001a638
push 0x12
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.10002b68
mov eax, dword [0x1002015c]
xor ebx, ebx
test byte [eax + 0x3c], 1
je 0x100058c8
cmp byte [eax + 0x39], 4
mov cl, 1
jae 0x100058ca
mov cl, bl
mov dword [ebp - 0x40], str.CBrowserHelper::ProcessElementClickOrKeyPress
mov byte [ebp - 0x3c], cl
mov dword [ebp - 4], ebx
test byte [eax + 0x3c], 1
je 0x100058e8
cmp byte [eax + 0x39], 4
jb 0x100058e8
call fcn.10012631
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x7c]
call fcn.1000eb14
test eax, eax
jns 0x10005906
or esi, 0xffffffff
jmp 0x10005d5a
mov dword [ebp - 0x18], ebx
push 3
pop eax
mov byte [ebp - 4], al
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test eax, eax
js 0x1000592e
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x10005a26
mov dword [ebp - 0x20], ebx
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.1000ea6d
mov esi, dword [ebp - 0x20]
test eax, eax
js 0x10005d38
test esi, esi
je 0x10005d38
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push esi
call dword [eax + 0x20]
mov eax, dword [ebp - 0x34]
test eax, eax
jle 0x10005a0f
mov edi, ebx
push 3
pop eax
push 9
mov word [ebp - 0x50], ax
lea ecx, [ebp - 0x60]
pop eax
push ecx
mov dword [ebp - 0x48], edi
lea ecx, [ebp - 0x50]
mov word [ebp - 0x60], ax
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x1c]
test eax, eax
js 0x10005d38
mov byte [ebp - 4], 0xb
mov ecx, ebx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x10], ecx
test edx, edx
je 0x100059bc
mov eax, dword [edx]
lea ecx, [ebp - 0x10]
push ecx
push 0x1001a5bc
push edx
call dword [eax]
mov ecx, dword [ebp - 0x10]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xc
test ecx, ecx
jne 0x100059c6
jmp 0x100059ee
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push ecx
call dword [eax + 0xd4]
test eax, eax
js 0x100059dd
cmp dword [ebp - 0x18], 0
jne 0x100059fe
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100059ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
mov byte [ebp - 4], 4
cmp edi, dword [ebp - 0x34]
jl 0x1000596a
jmp 0x10005a0f
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10005a0f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x18], 0
je 0x10005d38
mov byte [ebp - 4], 0x13
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x10005a43
or esi, 0xffffffff
jmp 0x10005d25
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
js 0x10005d17
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
je 0x10005a83
push dword [ebp - 0x14]
call esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x14]
call fcn.10002b68
test al, al
je 0x10005d17
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 0x22
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jns 0x10005ab6
or esi, 0xffffffff
jmp 0x10005d04
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0x27
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x10005cf6
cmp dword [ebp - 0x24], 0
je 0x10005aed
push dword [ebp - 0x24]
mov ecx, 0x1002344c
call fcn.10002b68
test eax, eax
jne 0x10005cf6
mov byte [ebp - 4], 0x30
call fcn.10003dfb
push eax
lea ecx, [ebp - 0x20]
call fcn.10002b68
mov byte [ebp - 4], 0x31
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x98], 6
jne 0x10005b69
push 0x10019544
lea ecx, [ebp - 0x38]
call fcn.10002b68
mov byte [ebp - 4], 0x32
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
push edx
push 2
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x10005b49
test esi, esi
je 0x10005b3e
push esi
call edi
mov edi, dword [ebp - 0x20]
or esi, 0xffffffff
jmp 0x10005ce6
push dword [ebp - 0x58]
call fcn.10002b68
pop ecx
push eax
push dword [ebp - 0x58]
lea ecx, [ebp - 0x20]
call fcn.10002b68
mov byte [ebp - 4], 0x31
test esi, esi
je 0x10005bbb
push esi
jmp 0x10005bb9
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0x37
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
jns 0x10005b97
cmp dword [ebp - 0x10], 0
je 0x10005b8f
push dword [ebp - 0x10]
call edi
mov edi, dword [ebp - 0x20]
or esi, 0xffffffff
jmp 0x10005c0e
push dword [ebp - 0x10]
call fcn.10002b68
pop ecx
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.10002b68
mov byte [ebp - 4], 0x31
cmp dword [ebp - 0x10], 0
je 0x10005bbb
push dword [ebp - 0x10]
call edi
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
cmp dword [esi + 0x90], ebx
jne 0x10005bd8
lea ecx, [esi + 0x90]
call fcn.10002b68
test eax, eax
js 0x10005c46
lea eax, [edi - 0x10]
push eax
call fcn.10002b68
pop ecx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x38], ebx
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 0x3c
lea ecx, [esi + 0x90]
call fcn.1000ee1e
lea ecx, [ebx - 0x10]
mov byte [ebp - 4], 0x31
mov esi, eax
call fcn.10002b68
test esi, esi
js 0x10005c16
xor esi, esi
movzx esi, si
jmp 0x10005ce6
mov esi, dword [ebp - 0x28]
xor ebx, ebx
push ebx
push dword [esi + 0x90]
call dword [sym.imp.ole32.dll_CoDisconnectObject]
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x10005c46
mov dword [esi + 0x90], ebx
mov byte [ebp - 4], 0x42
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x31
lea eax, [edi - 0x10]
push eax
call fcn.10002b68
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
mov dl, 1
mov byte [ebp - 4], 0x43
lea ecx, [ebp - 0x10]
call fcn.1000ec46
test eax, eax
js 0x10005cd9
mov byte [ebp - 4], 0x48
call fcn.10003dfb
push eax
lea ecx, [ebp - 0x28]
call fcn.10002b68
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x49
call fcn.1000e5fe
test eax, eax
js 0x10005cce
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
push eax
call fcn.10002b68
add eax, 0x10
pop ecx
mov dword [ebp - 0x34], eax
push 8
push str.lync.exe
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x4e
call fcn.10002b68
mov esi, dword [ebp - 0x34]
push 1
push ebx
push dword [ebp - 0x10]
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esi - 0x10]
call fcn.10002b68
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.10002b68
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10002b68
xor esi, esi
lea ecx, [edi - 0x10]
call fcn.10002b68
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10005cf9
or esi, 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x10005d04
push dword [ebp - 0x24]
call edi
mov byte [ebp - 4], 0x4f
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10005d1a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10005d1a
or esi, 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x10005d25
push dword [ebp - 0x14]
call edi
mov byte [ebp - 4], 0x50
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10005d49
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10005d49
mov byte [ebp - 4], 0x10
test esi, esi
je 0x10005d46
mov eax, dword [esi]
push esi
call dword [eax + 8]
or esi, 0xffffffff
mov byte [ebp - 4], 0x51
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10005d5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x52
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10005d6b
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
lea ecx, [ebp - 0x40]
call fcn.10002b68
mov ax, si
call fcn.10014ea6
ret