Function at 0x1003e560
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push str.Initialize_async_communications
mov ebx, edx
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x20], ebx
push 1
push 0x10000
mov dword [esp + 0x24], eax
call fcn.10042330
lea eax, [ebx - 1]
add esp, 0xc
cmp eax, 0xff
ja 0x1003ee46
call fcn.10040a30
test eax, eax
je 0x1003ee5b
push 0xa0
call fcn.10040ac0
mov edi, eax
add esp, 4
test edi, edi
je 0x1003ee38
push 0xa0
push 0
push edi
call fcn.10083a60
add esp, 0xc
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x1003e600
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_open_Kernel32.dll_0x_08X
push 5
push 1
call fcn.10042330
add esp, 0x10
jmp 0x1003ece9
push str.fltlib.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x1003e62e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_load_fltlib.dll_0x_08X
push 5
push 1
call fcn.10042330
add esp, 0x10
jmp 0x1003ece9
push str.FilterConnectCommunicationPort
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FilterSendMessage
push esi
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FilterGetMessage
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FilterReplyMessage
push esi
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CancelIoEx
push ebx
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [edi + 4], 0
mov dword [edi + 0x14], eax
je 0x1003ece2
cmp dword [edi + 8], 0
je 0x1003ece2
cmp dword [edi + 0xc], 0
je 0x1003ece2
cmp dword [edi + 0x10], 0
je 0x1003ece2
test eax, eax
je 0x1003ece2
mov eax, dword [esp + 0x14]
mov dword [edi], esi
push 0x28
mov dword [edi + 0x94], eax
call fcn.10040ac0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1003e6cd
mov dword [edi + 0x20], eax
jmp 0x1003ece9
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
call fcn.10041a10
mov dword [esi], eax
test eax, eax
je 0x1003e724
mov dword [eax + 0x34], 0x1003f790
mov eax, dword [esi]
mov dword [eax + 0x38], 0x1003f810
mov eax, dword [esi]
mov dword [eax + 0x30], 1
mov ebx, dword [esi]
test ebx, ebx
je 0x1003e724
push 0x200
mov dword [ebx + 0x2c], 0x80
call fcn.10040ac0
add esp, 4
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x1003e75f
mov dword [ebx + 0x2c], eax
mov eax, dword [esi]
test eax, eax
je 0x1003e74a
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x1003e741
push eax
mov ecx, ebx
call dword [0x100b42b0]
call ebx
mov eax, dword [esi]
add esp, 4
push eax
call fcn.10040d80
add esp, 4
push esi
call fcn.10040d80
add esp, 4
mov dword [edi + 0x20], 0
jmp 0x1003ece9
push 0x200
push 0
push eax
call fcn.10083a60
lea eax, [esi + 4]
add esp, 0xc
test eax, eax
je 0x1003e77d
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x1c]
lea ebx, [edi + 0x20]
mov dword [esp + 0x10], ebx
mov dword [ebx], esi
mov dword [edi + 0x54], eax
call fcn.100418d0
mov dword [edi + 0x38], eax
test eax, eax
je 0x1003ece9
xor esi, esi
cmp dword [edi + 0x54], esi
jbe 0x1003e82e
mov dword [esp + 0x10], ebx
nop dword [eax]
push 0x40048
call fcn.10040ac0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003ece9
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0x40048
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0x40010
mov dword [ecx + 0x20], 0
mov edx, dword [edi + 0x38]
test edx, edx
je 0x1003e828
cmp dword [edx + 0x20], 0
jne 0x1003e817
mov dword [edx + 0x1c], ecx
jmp 0x1003e822
mov eax, dword [edx + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x20]
mov dword [eax], ecx
mov dword [edx + 0x20], ecx
inc dword [edx + 0x24]
inc esi
cmp esi, dword [edi + 0x54]
jb 0x1003e7b0
push 0x10
call fcn.10040ac0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x1003ece9
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov cl, 1
mov byte [esi], 1
mov byte [esi + 2], 3
mov dword [esi + 4], 0x10
mov byte [esi + 8], 1
mov eax, dword [edi + 0x94]
mov dword [esi + 0xc], eax
mov byte [esi + 9], 1
test cl, dl
je 0x1003e87a
mov byte [esi + 9], 3
mov cl, 3
test dl, 2
je 0x1003e885
or cl, 4
mov byte [esi + 9], cl
mov eax, edx
and eax, 0x38
cmp eax, 0x20
ja case.0x1003e89a.1
movzx eax, byte [eax + 0x1003ee7c]
jmp dword [eax*4 + 0x1003ee64]
or cl, 8
jmp case.0x1003e89a.0
or cl, 0x10
jmp case.0x1003e89a.0
or cl, 0x18
jmp case.0x1003e89a.0
or cl, 0x20
lea ebx, [edi + 0x18]
mov byte [esi + 9], cl
push ebx
push 0
push 0x10
push esi
mov esi, dword [edi + 4]
mov ecx, esi
push 0
push str.SophosEndpointDefenseAsyncCommPort
call dword [0x100b42b0]
call esi
test eax, eax
je 0x1003e8f1
push eax
push str.Unable_to_open_async_communications_port___error_0x_08X
push 5
push 0x10000
call fcn.10042330
add esp, 0x10
jmp 0x1003ece9
push dword [edi + 0x54]
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x1003e933
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003e919
movzx eax, ax
or eax, 0x80070000
push eax
push str.Unable_to_create_I_O_completion_port___error_0x_08X
push 5
push 0x10000
call fcn.10042330
add esp, 0x10
jmp 0x1003ece9
mov esi, dword [edi + 0x54]
shl esi, 2
push esi
call fcn.10040ac0
add esp, 4
mov dword [edi + 0x58], eax
test eax, eax
je 0x1003ece9
push esi
push 0
push eax
call fcn.10083a60
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 0x54], ebx
jbe 0x1003ea5c
mov eax, dword [esp + 0x10]
push 0x58
mov dword [esp + 0x14], eax
call fcn.10040ac0
mov esi, eax
add esp, 4
test esi, esi
je 0x1003eae4
push 0xc
call fcn.10040ac0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x1003eaff
push 0x58
push 0
push esi
call fcn.10083a60
mov eax, dword [esp + 0x20]
add esp, 0xc
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x58
mov dword [esi + 0x18], 0x100401d0
mov dword [esi + 0x20], eax
call fcn.10040ac0
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x1003eaf3
push 0
push 0
mov dword [esi + 0x34], 8
mov dword [eax], edi
push 0
mov dword [eax + 4], ebx
push 0
mov dword [esi + 0x30], 0x32
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
test eax, eax
je 0x1003eabf
lea eax, [esi + 0x38]
mov dword [esi + 0x28], 0x1003e260
mov dword [esi + 0x2c], 0x10000
test eax, eax
je 0x1003ea48
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esi + 0x51], 0
mov eax, dword [edi + 0x58]
mov dword [eax + ebx*4], esi
inc ebx
cmp ebx, dword [edi + 0x54]
jb 0x1003e964
mov ebx, dword [esp + 0x10]
call fcn.100418d0
mov dword [edi + 0x5c], eax
test eax, eax
je 0x1003ece9
call fcn.10041a10
mov dword [edi + 0x78], eax
test eax, eax
je 0x1003ece9
mov dword [eax + 0x34], 0x1003d340
mov eax, dword [edi + 0x78]
mov dword [eax + 0x38], 0x1003d370
mov esi, dword [edi + 0x78]
test esi, esi
je 0x1003ece9
push 0x100
mov dword [esi + 0x2c], 0x40
call fcn.10040ac0
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x1003eb02
mov dword [esi + 0x2c], eax
jmp 0x1003ece9
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1003eacf
push eax
call fcn.10040d80
add esp, 4
push esi
call fcn.10040d80
add esp, 4
push dword [esp + 0x14]
call fcn.10040d80
add esp, 4
mov eax, dword [edi + 0x58]
mov dword [eax + ebx*4], 0
jmp 0x1003ece9
push dword [esp + 0x14]
call fcn.10040d80
add esp, 4
push esi
jmp 0x1003eadc
push 0x100
push 0
push eax
call fcn.10083a60
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
jne 0x1003eb3d
push str.commandmgmt___NULL
push 0x210
push str.C:workspace_sed_srcCommonSgCommandMgmt.c
push str._s___d_:_Assertion_failure:__s
push 1
push 0x80000000
call fcn.10042330
add esp, 0x18
jmp 0x1003eb47
mov dword [eax + 0x20], 0x1003da60
mov dword [eax + 0x24], edi
lea eax, [edi + 0x60]
test eax, eax
je 0x1003eb55
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x7c]
test eax, eax
je 0x1003eb63
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x3c]
test eax, eax
je 0x1003eb71
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x18]
push eax
call fcn.10040d80
add esp, 4
push str.Registering_with_SED_driver...
push 1
push 0x10000
call fcn.10042330
mov ebx, dword [edi + 0x94]
add esp, 0xc
mov byte [esp + 0xf], 0
push 0x44
call fcn.10040ac0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1003ebd6
push 0x44
push str.Failed_to_allocate_new_async_comm_message___lu_bytes_
push 5
push 0x10
call fcn.10042330
push str.Unable_to_create_a_registration_message
push 5
push 0x10000
call fcn.10042330
add esp, 0x1c
jmp 0x1003ecac
mov dword [esi + 0x24], 0
xor eax, eax
mov dword [esi + 0x28], 0
mov edx, esi
mov dword [esi + 0x2c], 0
mov ecx, edi
mov dword [esi + 0x30], 0
mov dword [esi + 0x35], 0
mov dword [esi + 0x39], 0
mov dword [esi + 0x3d], 0
mov word [esi + 0x41], ax
mov byte [esi + 0x43], al
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x14], 0x44
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
mov byte [eax], 1
mov byte [eax + 2], 3
mov eax, dword [esi + 0x1c]
mov byte [eax + 3], 0x32
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], 0x10
mov eax, dword [esi + 0x1c]
mov byte [eax + 8], 1
mov eax, dword [esi + 0x1c]
mov dword [eax + 0xc], ebx
call fcn.1003f6c0
test eax, eax
je 0x1003ec7e
push eax
push str.Unable_to_send_a_registration_message__0x_X_
push 5
push 0x10000
call fcn.10042330
add esp, 0x10
jmp 0x1003ec83
mov byte [esp + 0xf], 1
mov ebx, dword [esi + 0x18]
push esi
test ebx, ebx
je 0x1003ec9d
mov ecx, ebx
call dword [0x100b42b0]
call ebx
add esp, 4
cmp al, 1
jne 0x1003eca5
push esi
call fcn.10040d80
add esp, 4
cmp byte [esp + 0xf], 0
jne 0x1003ecc2
push str.Registration_failed
push 1
push 0x10000
call fcn.10042330
add esp, 0xc
jmp 0x1003ece9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
push str.Invalid_mode_flags:_0x_08x
push 5
push 0x10000
call fcn.10042330
add esp, 0x10
jmp 0x1003ece9
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1003ecfe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1003ed13
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x18], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x1003ed6b
xor esi, esi
cmp dword [edi + 0x54], esi
jbe 0x1003ed5b
mov eax, dword [edi + 0x58]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x1003ed52
mov ebx, dword [eax + 0x18]
push eax
test ebx, ebx
je 0x1003ed4a
mov ecx, ebx
call dword [0x100b42b0]
call ebx
add esp, 4
cmp al, 1
jne 0x1003ed52
mov eax, dword [edi + 0x58]
push dword [eax + esi*4]
call fcn.10040d80
add esp, 4
inc esi
cmp esi, dword [edi + 0x54]
jb 0x1003ed21
mov eax, dword [edi + 0x58]
push eax
call fcn.10040d80
add esp, 4
mov dword [edi + 0x58], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x1003ed93
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1003ed8a
push eax
mov ecx, esi
call dword [0x100b42b0]
call esi
mov eax, dword [edi + 0x5c]
add esp, 4
push eax
call fcn.10040d80
add esp, 4
mov eax, dword [edi + 0x78]
mov dword [edi + 0x5c], 0
test eax, eax
je 0x1003edc2
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1003edb9
push eax
mov ecx, esi
call dword [0x100b42b0]
call esi
mov eax, dword [edi + 0x78]
add esp, 4
push eax
call fcn.10040d80
add esp, 4
mov eax, dword [edi + 0x38]
mov dword [edi + 0x78], 0
test eax, eax
je 0x1003edf1
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1003ede8
push eax
mov ecx, esi
call dword [0x100b42b0]
call esi
mov eax, dword [edi + 0x38]
add esp, 4
push eax
call fcn.10040d80
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [edi + 0x38], 0
test eax, eax
je 0x1003ee09
push eax
call fcn.10040d80
add esp, 4
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x1003ee1c
call fcn.1003f890
mov dword [edi + 0x20], 0
mov eax, dword [edi]
test eax, eax
je 0x1003ee2f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], 0
push edi
call fcn.10040d80
add esp, 4
call fcn.10040a80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push str.Invalid_number_of_threads_requested:__lu
push 5
push 0x10000
call fcn.10042330
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret