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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x100d800c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x24], edi
test ebx, ebx
je 0x1003da3c
test edi, edi
je 0x1003da3c
mov esi, dword [ebx + 0x1c]
mov dword [esp + 0x10], esi
test esi, esi
je 0x1003da3c
cmp byte [esi + 2], 5
jne 0x1003da3c
cmp dword [esi + 4], 0x38
jb 0x1003da3c
cmp byte [esi + 8], 1
jne 0x1003da3c
cmp byte [ebx + 0x32], 1
jne 0x1003d57b
mov eax, dword [edi + 0x94]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov byte [ebx + 0x32], 0
cmp byte [ebp + 8], 0
je 0x1003d5fe
mov eax, dword [esi + 0x14]
cmp eax, dword [edi + 0x94]
je 0x1003d5fe
mov edx, ebx
mov ecx, edi
call fcn.1003f6c0
mov esi, eax
test esi, esi
jne 0x1003d5d5
mov edi, dword [ebx + 0x18]
push ebx
test edi, edi
je 0x1003d5b9
mov ecx, edi
call dword [0x100b42b0]
call edi
add esp, 4
cmp al, 1
jne 0x1003da28
push ebx
call fcn.10040d80
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1006d58e
mov esp, ebp
pop ebp
ret
push esi
push str.Error_routing_message_to_kernel_0x_08X
push 5
push 0x10000
call fcn.10042330
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1006d58e
mov esp, ebp
pop ebp
ret
test byte [esi + 9], 2
je 0x1003da1c
push str.Received_command_reply
push 1
push 0x10000
call fcn.10042330
mov eax, dword [esi + 0xc]
add esi, 0xc
and eax, 0x3f
mov dword [esp + 0x24], esi
add esp, 0xc
mov dword [esp + 0x20], eax
lea eax, [edi + 0x7c]
mov dword [esp + 0x1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x78]
mov dword [esp + 0x28], edx
test edx, edx
je 0x1003d9da
test esi, esi
je 0x1003d9da
cmp dword [edx + 0x1c], 0
jne 0x1003d661
lea eax, [edi + 0x7c]
push eax
jmp 0x1003d9de
mov eax, dword [edx + 0x2c]
cmp dword [esp + 0x20], eax
mov edi, dword [edx + 0x1c]
lea ecx, [eax - 1]
cmovb ecx, dword [esp + 0x20]
mov edi, dword [edi + ecx*4]
test edi, edi
je 0x1003d9da
nop
push esi
mov esi, dword [edx + 0x38]
mov ecx, esi
push edi
call dword [0x100b42b0]
call esi
add esp, 8
cmp al, 1
je 0x1003d6aa
mov edi, dword [edi + 8]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x1003d680
jmp 0x1003d9da
test edi, edi
je 0x1003d9da
mov eax, dword [edi + 0x20]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x14]
cmp eax, dword [esi + 0x10]
jne 0x1003d9da
mov edx, dword [ecx + 0x28]
mov eax, edx
or eax, dword [ecx + 0x2c]
je 0x1003d6ff
cmp edx, dword [esi + 0x18]
jne 0x1003d9da
mov eax, dword [ecx + 0x2c]
cmp eax, dword [esi + 0x1c]
jne 0x1003d9da
mov eax, dword [ecx + 0x30]
cmp eax, dword [esi + 0x20]
jne 0x1003d9da
mov eax, dword [ecx + 0x34]
cmp eax, dword [esi + 0x24]
jne 0x1003d9da
cmp byte [edi + 0x59], 0
jne 0x1003d9da
mov eax, dword [esp + 0x1c]
push eax
mov byte [edi + 0x58], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esi + 9]
mov ecx, dword [edi + 0x48]
mov byte [esp + 0x16], al
and al, 4
mov byte [esp + 0x17], al
setne al
mov dword [esp + 0x10], ecx
mov byte [esp + 0x20], al
test ecx, ecx
jne 0x1003d741
cmp dword [edi + 0x4c], ecx
jne 0x1003d741
cmp dword [edi + 0x50], ecx
je 0x1003d773
mov eax, dword [ebx + 0x1c]
mov dl, byte [edi + 0x40]
mov dh, byte [eax + 0xb]
mov byte [esp + 0x15], dh
cmp dl, dh
jne 0x1003d75f
movzx eax, dl
sub eax, 1
je 0x1003d795
sub eax, 1
je 0x1003d7ae
push str.Command_reply_is_not_valid
push 1
push 0x10000
call fcn.10042330
add esp, 0xc
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0x59], 0
je 0x1003d997
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1003d9da
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1003d75f
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x1003d75f
cmp byte [edx + eax - 1], 0
jne 0x1003d75f
mov dh, byte [esp + 0x15]
test byte [esp + 0x16], 8
je 0x1003d90d
movzx eax, dh
mov dword [esp + 0x28], 0
sub eax, 1
je 0x1003d803
sub eax, 1
jne 0x1003d901
cmp dword [ebx + 0x28], 4
jne 0x1003d901
mov ecx, dword [ebx + 0x20]
movsx edx, byte [ecx + 3]
movsx eax, byte [ecx + 2]
shl edx, 8
add edx, eax
movsx eax, byte [ecx + 1]
shl edx, 8
add edx, eax
movsx eax, byte [ecx]
shl edx, 8
add edx, eax
mov dword [esp + 0x18], edx
jmp 0x1003d86d
cmp dword [ebx + 0x28], 0x12
jne 0x1003d901
mov eax, dword [ebx + 0x20]
cmp byte [eax + 0x11], 0
jne 0x1003d901
mov ecx, 0x4f525245
cmp ecx, dword [eax]
jne 0x1003d901
mov ecx, 0x30203a52
cmp ecx, dword [eax + 4]
jne 0x1003d901
mov ecx, 0x78
cmp cl, byte [eax + 8]
jne 0x1003d901
push 0x10
lea ecx, [esp + 0x2c]
add eax, 9
push ecx
push eax
call fcn.10087953
mov ecx, dword [ebx + 0x20]
add esp, 0xc
dec ecx
mov dword [esp + 0x18], eax
add ecx, dword [ebx + 0x28]
cmp dword [esp + 0x28], ecx
jne 0x1003d901
mov edx, eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1003d890
push dword [edi + 0x44]
mov ecx, eax
push 0x100c242f
push edx
call dword [0x100b42b0]
call dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi + 0x4c]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x1003d8c2
push dword [edi + 0x44]
movups xmm0, xmmword [esi + 0x18]
push 0
push 0
push dword [esi + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x38]
movups xmmword [eax], xmm0
call dword [0x100b42b0]
call dword [esp + 0x34]
add esp, 0x24
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x1003d773
push dword [esp + 0x20]
movups xmm0, xmmword [esi + 0x18]
push dword [edi + 0x44]
push 0
push 0
push dword [esi + 0x10]
sub esp, 0x10
mov eax, esp
push dword [esp + 0x3c]
movups xmmword [eax], xmm0
call dword [0x100b42b0]
call dword [esp + 0x38]
add esp, 0x28
jmp 0x1003d773
push str.Ignoring_incorrect_error_message
push 4
jmp 0x1003d766
test ecx, ecx
je 0x1003d926
push dword [edi + 0x44]
push dword [ebx + 0x20]
push 0
call dword [0x100b42b0]
call dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi + 0x4c]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x1003d958
push dword [edi + 0x44]
movups xmm0, xmmword [esi + 0x18]
push dword [ebx + 0x28]
push dword [ebx + 0x20]
push dword [esi + 0x10]
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
call dword [0x100b42b0]
call dword [esp + 0x34]
add esp, 0x24
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x1003d773
push dword [esp + 0x20]
movups xmm0, xmmword [esi + 0x18]
push dword [edi + 0x44]
push dword [ebx + 0x28]
push dword [ebx + 0x20]
push dword [esi + 0x10]
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
call dword [0x100b42b0]
call dword [esp + 0x38]
add esp, 0x28
jmp 0x1003d773
cmp byte [esp + 0x17], 0
je 0x1003d9cc
mov ecx, dword [esp + 0x24]
mov edx, edi
mov ecx, dword [ecx + 0x78]
call fcn.10041d60
mov esi, dword [edi + 0x18]
test esi, esi
je 0x1003d9c1
push edi
mov ecx, esi
call dword [0x100b42b0]
call esi
add esp, 4
push edi
call fcn.10040d80
add esp, 4
jmp 0x1003d9da
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov byte [edi + 0x58], 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebx + 0x18]
push ebx
test esi, esi
je 0x1003d9fe
mov ecx, esi
call dword [0x100b42b0]
call esi
add esp, 4
cmp al, 1
jne 0x1003da06
push ebx
call fcn.10040d80
add esp, 4
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1006d58e
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x20]
mov edx, ebx
call fcn.1003f930
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1006d58e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov eax, 0xe0020001
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006d58e
mov esp, ebp
pop ebp
ret