Function at 0x40fcd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x419ee6
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x421018]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x421018]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x40fd21
mov eax, 0x1017
jmp 0x40fec8
mov edi, 7
xor ecx, ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], cx
push 0x34
push ebx
push eax
mov dword [esp + 0x9c], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp byte [0x422b59], bl
je 0x40fd6d
mov edx, dword [0x422b5c]
push edx
mov byte [0x422b59], bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x40fd6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x422c14], 1
jne 0x40fd9e
or dword [0x422c14], 1
mov byte [esp + 0x90], 1
call fcn.00402990
push 0x41a9d0
call fcn.00417dd5
add esp, 4
mov byte [esp + 0x90], bl
test byte [0x422b68], 1
mov esi, dword [0x422c34]
mov dword [esp + 0x14], esi
jne 0x40fdca
or dword [0x422b68], 1
call fcn.0040d2d0
push 0x41a960
call fcn.00417dd5
add esp, 4
mov eax, dword [0x422b70]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push 0x422b7c
or eax, 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.00401ce0
mov ecx, dword [0x422b70]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor edx, edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
xor eax, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
mov eax, esi
dec eax
mov byte [esp + 0x90], 3
je 0x40ff02
dec eax
je 0x40fee9
mov esi, 0x1017
mov edi, dword [esp + 0x10]
push 0x34
push ebx
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp byte [0x422b59], bl
je 0x40fe67
mov ecx, dword [0x422b5c]
push ecx
mov byte [0x422b59], bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x40fe67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x40], 8
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40fe7e
mov edx, dword [esp + 0x2c]
push edx
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x5c], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
jb 0x40fea2
mov ecx, dword [esp + 0x48]
push ecx
call edi
add esp, 4
xor edx, edx
cmp dword [esp + 0x78], 8
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
jb 0x40fec6
mov eax, dword [esp + 0x64]
push eax
call edi
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
push 0xa
mov eax, str.Intel_Corp
lea esi, [esp + 0x4c]
call fcn.0040ba00
push 0xc
mov eax, str.bhPlugin.dll
jmp 0x40ff19
push 0xa
mov eax, str.Intel_Corp
lea esi, [esp + 0x4c]
call fcn.0040ba00
push 0xd
mov eax, str.teePlugin.dll
lea esi, [esp + 0x30]
call fcn.0040ba00
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push ebx
lea eax, [esp + 0x6c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov esi, 0x422b5c
mov word [ecx], dx
call fcn.00401ce0
sub esp, 0x1c
mov byte [esp + 0xcc], 4
mov ecx, esp
mov dword [esp + 0x64], esp
push ebx
lea eax, [esp + 0x6c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401ce0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
mov byte [esp + 0xe8], 5
push ebx
lea eax, [esp + 0xc0]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401ce0
mov ecx, esi
mov byte [esp + 0xe8], 3
call fcn.0040b420
mov esi, eax
add esp, 0x58
cmp esi, ebx
jne 0x40fe32
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov byte [0x422b59], 1
jae 0x40ffd4
lea eax, [esp + 0x2c]
push str.pluginRegister
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x10]
cmp eax, ebx
jne 0x40fff9
mov esi, 0x1017
jmp 0x40fe36
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], fcn.00401760
mov dword [esp + 0x24], fcn.004017d0
call eax
add esp, 8
test eax, eax
jne 0x40ffef
mov ecx, edi
lea ebx, [ebx]
cmp dword [ecx], ebx
je 0x40ffef
inc eax
add ecx, 4
cmp eax, 0xd
jl 0x410020
sete al
cmp al, bl
je 0x40ffef
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call eax
add esp, 4
cmp eax, dword [esp + 0x14]
je 0x41004f
mov esi, 0x1017
jmp 0x40fe36
lea esi, [esp + 0x2c]
call fcn.00401ac0
lea esi, [esp + 0x48]
call fcn.00401ac0
lea esi, [esp + 0x64]
call fcn.00401ac0
xor eax, eax
jmp 0x40fec8