Function at 0x406900
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fc82
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x453d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CErisProbe::AddDevice__Start__n
xor edi, edi
push 0x4582a0
mov dword [ebp - 4], edi
call fcn.004024c0
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
add esp, 8
cmp eax, edi
jne 0x406989
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], 1
call fcn.00421cc1
push ecx
mov dword [ebp - 0x28], esp
mov byte [ebp - 4], 7
mov dword [ebp - 0x28], esp
cmp ebx, edi
jne 0x40699f
xor eax, eax
jmp 0x4069ae
push eax
call esi
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, edi
jne 0x406951
push 0x8007000e
call fcn.00401090
push ebx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
cmp ebx, edi
je 0x4069c5
cmp eax, edi
jne 0x4069c5
push 0x8007000e
call fcn.00401090
lea ecx, [ebp - 0x58]
call fcn.00415fa0
lea edx, [ebp - 0x20]
push edx
push ecx
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x28], esp
push str.Device_ID
call esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
cmp eax, edi
jne 0x4069f2
push 0x8007000e
call fcn.00401090
lea ecx, [ebp - 0x58]
call fcn.00416100
lea edx, [ebp - 0x18]
push edx
push ecx
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x28], esp
push str.IPAddress
call esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
cmp eax, edi
jne 0x406a1f
push 0x8007000e
call fcn.00401090
lea ecx, [ebp - 0x58]
call fcn.00416100
lea edx, [ebp - 0x1c]
push edx
push ecx
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x28], esp
push str.IPV4_Address
call esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
cmp eax, edi
jne 0x406a4c
push 0x8007000e
call fcn.00401090
lea ecx, [ebp - 0x58]
call fcn.00416100
lea edx, [ebp - 0x14]
push edx
push ecx
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x28], esp
push str.MAC_Address
call esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
cmp eax, edi
jne 0x406a79
push 0x8007000e
call fcn.00401090
lea ecx, [ebp - 0x58]
call fcn.00416100
lea edx, [ebp - 0x10]
push edx
push ecx
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x28], esp
push str.Device_Name
call esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
cmp eax, edi
jne 0x406aa6
push 0x8007000e
call fcn.00401090
lea ecx, [ebp - 0x58]
call fcn.00416100
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
cmp eax, edi
je 0x406af8
cmp dword [eax + 0x20], edi
je 0x406af8
cmp eax, edi
je 0x406ae2
mov edi, dword [eax + 0x20]
mov edx, dword [eax + 0x20]
lea ecx, [ebp - 0x3c]
push ecx
push edi
push 0x7f00
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x406b09
mov eax, dword [ecx + 0x14]
cmp eax, edi
je 0x406b09
mov ecx, dword [ecx + 0x18]
lea edx, [ebp - 0x3c]
push edx
push ecx
call eax
push str.CErisProbe::AddDevice__Exit__n
push 0x4582a0
call fcn.004024c0
add esp, 8
push str.CErisProbe::AddDevice__Exit__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x58]
push edx
mov byte [ebp - 4], 6
call fcn.00415ee0
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call esi
mov edx, dword [ebp - 0x18]
push edx
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8