Function at 0x10004b20
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100694fb
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 0x10004b94
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10005600
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.10005540
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004f8e
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.10005540
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004f8e
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.10005540
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004f8e
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10004e55
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x450]
call fcn.10004380
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x450]
mov ecx, esp
push eax
call fcn.100051f0
call fcn.10004720
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10004cef
push 1
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10004cef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x43c]
cmp ecx, 7
jbe 0x10004f8e
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004ce0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fec
push ecx
push edx
call fcn.1004633f
add esp, 8
jmp 0x10004f8e
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x43c]
cmp ecx, 7
jbe 0x10004d33
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004d29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fec
push ecx
push edx
call fcn.1004633f
add esp, 8
mov esi, dword [ebp - 0x454]
lea eax, [ebp - 0x420]
push 0x104
push eax
push esi
mov dword [0x10088ea0], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10004d6a
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.10044cd0
cmp dword [0x10088ea8], 0
jne 0x10004e47
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x10088ea8], eax
xor ecx, ecx
mov edx, 0x10088ea4
xchg dword [edx], ecx
test eax, eax
je 0x10004f8e
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008813c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10089654]
cmp eax, dword [ecx + 4]
jle 0x10004de7
push 0x10089654
call fcn.10045e7c
add esp, 4
cmp dword [0x10089654], 0xffffffff
jne 0x10004de7
push 0x1006ffa0
call fcn.1004632a
push 0x10089654
call fcn.10045e2b
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1002e0d0
push 0
push 0
call edi
mov dword [0x10089448], eax
call fcn.10024500
mov esi, eax
cmp dword [esi + 4], 0
jne 0x10004e24
push 0
push 0
push 0
push 0x100242d0
push 0
push 0
call edi
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
jne 0x10004f8e
push 0
push 0
push 0
push 0x10024370
push 0
push 0
call edi
mov dword [esi + 8], eax
jmp 0x10004f8e
xor eax, eax
mov ecx, 0x10088ea4
xchg dword [ecx], eax
jmp 0x10004f8e
test eax, eax
jne 0x10004f7e
push dword [0x10088e60]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword fs:[0x2c]
test edi, edi
mov ecx, dword [0x1008813c]
setne byte [ebp - 0x454]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10089654]
cmp eax, dword [ecx + 4]
jle 0x10004ebb
push 0x10089654
call fcn.10045e7c
add esp, 4
cmp dword [0x10089654], 0xffffffff
jne 0x10004ebb
push 0x1006ffa0
call fcn.1004632a
push 0x10089654
call fcn.10045e2b
add esp, 8
cmp dword [0x10089448], 0
je 0x10004f06
mov al, 1
mov ecx, 0x1008944c
xchg byte [ecx], al
push 0x3e8
push dword [0x10089448]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10004ef0
push 0
push dword [0x10089448]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x10089448]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10089448], 0
mov ecx, dword [0x10089450]
mov dword [0x10089450], 0
test ecx, ecx
je 0x10004f20
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x10089454]
mov dword [0x10089454], 0
test ecx, ecx
je 0x10004f3a
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x10089458]
mov dword [0x10089458], 0
test ecx, ecx
je 0x10004f54
mov eax, dword [ecx]
push 1
call dword [eax]
xor al, al
mov ecx, 0x1008944d
xchg byte [ecx], al
test edi, edi
je 0x10004f6a
call fcn.10037660
mov byte [eax + 0x19], 1
call fcn.10024500
push dword [ebp - 0x454]
mov ecx, eax
call fcn.10025220
jmp 0x10004f8e
cmp eax, 6
jne 0x10004f8e
test edi, edi
je 0x10004f8e
mov eax, dword [0x10088ea0]
mov dword [edi], eax
mov esi, dword [ebp - 0x424]
cmp esi, 7
jbe 0x10004fca
mov edx, dword [ebp - 0x438]
lea ecx, [esi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004fc0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fec
push ecx
push edx
call fcn.1004633f
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.10045df2
mov esp, ebp
pop ebp
ret 0xc
call fcn.1004eae1
int3