Function at 0x100049f0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069b6b
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x10086040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x424], 0
movups xmmword [ebp - 0x438], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004a64
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10005690
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
mov esi, dword [ebp - 0x424]
cmp esi, 7
mov edx, dword [ebp - 0x428]
cmova ecx, dword [ebp - 0x438]
push 0x12
push str.capture_helper.exe
push ecx
call fcn.100055d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004e5e
mov edx, dword [ebp - 0x428]
lea ecx, [ebp - 0x438]
cmp esi, 7
push 0x16
cmova ecx, dword [ebp - 0x438]
push str.capture_helper_x86.exe
push ecx
call fcn.100055d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004e5e
mov edx, dword [ebp - 0x428]
lea ecx, [ebp - 0x438]
cmp esi, 7
push 0x16
cmova ecx, dword [ebp - 0x438]
push str.capture_helper_x64.exe
push ecx
call fcn.100055d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004e5e
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10004d25
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x450]
call fcn.10005450
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x450]
mov ecx, esp
push eax
call fcn.100050c0
call fcn.100045f0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10004bbf
push 1
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10004bbf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x43c]
cmp ecx, 7
jbe 0x10004e5e
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004bb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ebc
push ecx
push edx
call fcn.10046823
add esp, 8
jmp 0x10004e5e
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x43c]
cmp ecx, 7
jbe 0x10004c03
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004bf9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ebc
push ecx
push edx
call fcn.10046823
add esp, 8
mov esi, dword [ebp - 0x454]
lea eax, [ebp - 0x420]
push 0x104
push eax
push esi
mov dword [0x10088ed0], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10004c3a
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.100451c0
cmp dword [0x10088ed8], 0
jne 0x10004d17
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x10088ed8], eax
xor ecx, ecx
mov edx, 0x10088ed4
xchg dword [edx], ecx
test eax, eax
je 0x10004e5e
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008816c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10089684]
cmp eax, dword [ecx + 4]
jle 0x10004cb7
push 0x10089684
call fcn.10046360
add esp, 4
cmp dword [0x10089684], 0xffffffff
jne 0x10004cb7
push 0x100705e0
call fcn.1004680e
push 0x10089684
call fcn.1004630f
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1002e360
push 0
push 0
call edi
mov dword [0x10089478], eax
call fcn.10024810
mov esi, eax
cmp dword [esi + 4], 0
jne 0x10004cf4
push 0
push 0
push 0
push 0x100245e0
push 0
push 0
call edi
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
jne 0x10004e5e
push 0
push 0
push 0
push 0x10024680
push 0
push 0
call edi
mov dword [esi + 8], eax
jmp 0x10004e5e
xor eax, eax
mov ecx, 0x10088ed4
xchg dword [ecx], eax
jmp 0x10004e5e
test eax, eax
jne 0x10004e4e
push dword [0x10088e90]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword fs:[0x2c]
test edi, edi
mov ecx, dword [0x1008816c]
setne byte [ebp - 0x454]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10089684]
cmp eax, dword [ecx + 4]
jle 0x10004d8b
push 0x10089684
call fcn.10046360
add esp, 4
cmp dword [0x10089684], 0xffffffff
jne 0x10004d8b
push 0x100705e0
call fcn.1004680e
push 0x10089684
call fcn.1004630f
add esp, 8
cmp dword [0x10089478], 0
je 0x10004dd6
mov al, 1
mov ecx, 0x1008947c
xchg byte [ecx], al
push 0x3e8
push dword [0x10089478]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10004dc0
push 0
push dword [0x10089478]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x10089478]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10089478], 0
mov ecx, dword [0x10089480]
mov dword [0x10089480], 0
test ecx, ecx
je 0x10004df0
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x10089484]
mov dword [0x10089484], 0
test ecx, ecx
je 0x10004e0a
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x10089488]
mov dword [0x10089488], 0
test ecx, ecx
je 0x10004e24
mov eax, dword [ecx]
push 1
call dword [eax]
xor al, al
mov ecx, 0x1008947d
xchg byte [ecx], al
test edi, edi
je 0x10004e3a
call fcn.10037880
mov byte [eax + 0x19], 1
call fcn.10024810
push dword [ebp - 0x454]
mov ecx, eax
call fcn.10025530
jmp 0x10004e5e
cmp eax, 6
jne 0x10004e5e
test edi, edi
je 0x10004e5e
mov eax, dword [0x10088ed0]
mov dword [edi], eax
mov esi, dword [ebp - 0x424]
cmp esi, 7
jbe 0x10004e9a
mov edx, dword [ebp - 0x438]
lea ecx, [esi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004e90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ebc
push ecx
push edx
call fcn.10046823
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100462d6
mov esp, ebp
pop ebp
ret 0xc
call fcn.1004f161
int3