Function at 0x100067c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100160a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov ebx, edx
mov dword [ebp - 0x28], eax
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
call fcn.100064c0
cmp eax, esi
jle 0x10006837
push esi
push 0x10
lea edx, [ebp - 0x14]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x1000681d
lea eax, [esi - 0xb]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d620
mov esp, ebp
pop ebp
ret
jge 0x10006835
mov eax, 0xffffd8bb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d620
mov esp, ebp
pop ebp
ret
cmp eax, esi
jl 0x10006a0c
cmp eax, 0x10
jb 0x10006a0c
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
cmp edi, esi
jbe 0x10006a07
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, ebx
call fcn.100064c0
test eax, eax
jle 0x1000688a
mov ecx, dword [ebp - 0x1c]
push 0
mov eax, edi
sub eax, esi
push eax
lea edx, [esi + ecx]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10006892
js 0x10006892
js 0x10006892
add esi, eax
cmp esi, edi
jb 0x10006861
cmp esi, edi
je 0x100068ab
call dword [sym.imp.MSVCR100.dll___iob_func]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR100.dll_free]
jmp 0x10006a04
cmp dword [ebp - 0xc], 8
jne 0x10006c05
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push ecx
push edi
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.libplist2.dll_plist_from_xml]
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 0x18]
xor edi, edi
add esp, 0x10
cmp eax, edi
jne 0x100068e9
call dword [sym.imp.MSVCR100.dll___iob_func]
jmp 0x10006a07
mov ebx, dword [sym.imp.libplist2.dll_plist_dict_get_item]
push str.MessageType
push eax
call ebx
mov esi, eax
add esp, 8
cmp esi, edi
je 0x10006bcb
push esi
call dword [sym.imp.libplist2.dll_plist_get_node_type]
add esp, 4
cmp eax, 3
jne 0x10006bcb
push edi
push esi
call dword [sym.imp.libplist2.dll_plist_get_string_ptr]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x1000699a
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov edx, str.Result
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10006955
test al, al
je 0x10006951
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10006955
add ecx, 2
add edx, 2
test al, al
jne 0x10006935
xor eax, eax
jmp 0x1000695a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x100069ac
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push str.Number
push eax
call ebx
add esp, 8
push eax
call dword [sym.imp.libplist2.dll_plist_get_uint_val]
push 4
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx], eax
mov dword [eax], edx
add esp, 0xc
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.libplist2.dll_plist_free]
add esp, 4
jmp 0x10006c0d
mov edx, str.Attached
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100069d3
test al, al
je 0x100069cf
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100069d3
add ecx, 2
add edx, 2
test al, al
jne 0x100069b3
xor eax, eax
jmp 0x100069d8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x10006b35
mov eax, dword [ebp - 0x18]
push str.Properties
push eax
call ebx
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x10006a1d
call dword [sym.imp.MSVCR100.dll___iob_func]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.libplist2.dll_plist_free]
add esp, 4
mov eax, 0xffffffb3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d620
mov esp, ebp
pop ebp
ret
push 0x31
call dword [sym.imp.MSVCR100.dll_malloc]
push 0x31
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0x10
lea edx, [ebp - 0x20]
push edx
push str.DeviceID
push esi
call ebx
add esp, 8
push eax
call dword [sym.imp.libplist2.dll_plist_get_uint_val]
mov eax, dword [ebp - 0x20]
add esp, 8
push 0
push str.SerialNumber
push esi
mov dword [edi], eax
call ebx
add esp, 8
push eax
call dword [sym.imp.libplist2.dll_plist_get_string_ptr]
add esp, 8
test eax, eax
je 0x10006a7c
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax + 4], cl
inc eax
test cl, cl
jne 0x10006a71
push 0
push str.ConnectionType
push esi
mov dword [edi + 0x2d], 0
call ebx
add esp, 8
push eax
call dword [sym.imp.libplist2.dll_plist_get_string_ptr]
mov esi, eax
add esp, 8
test esi, esi
je 0x10006b10
mov edx, 0x10012cb0
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10006ac7
test al, al
je 0x10006ac3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10006ac7
add ecx, 2
add edx, 2
test al, al
jne 0x10006aa7
xor eax, eax
jmp 0x10006acc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10006ad9
mov dword [edi + 0x2d], 1
jmp 0x10006b10
mov ecx, str.Network
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006b00
test dl, dl
je 0x10006afc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006b00
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006ae0
xor eax, eax
jmp 0x10006b05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10006b10
mov dword [edi + 0x2d], 2
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
push eax
mov dword [edx], edi
mov dword [ebp - 0x14], 0x41
mov dword [ebp - 0xc], 4
call dword [sym.imp.libplist2.dll_plist_free]
add esp, 4
jmp 0x10006c0d
mov ecx, str.Detached
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006b60
test dl, dl
je 0x10006b5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006b60
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006b40
xor eax, eax
jmp 0x10006b65
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x10006bbc
mov eax, dword [ebp - 0x18]
push str.DeviceID
push eax
call ebx
add esp, 8
cmp eax, edi
je 0x1000699a
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.libplist2.dll_plist_get_uint_val]
push 4
call dword [sym.imp.MSVCR100.dll_malloc]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edx], eax
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
add esp, 0xc
push eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0xc], 5
call dword [sym.imp.libplist2.dll_plist_free]
add esp, 4
jmp 0x10006c0d
call dword [sym.imp.MSVCR100.dll___iob_func]
mov edx, dword [ebp - 0x18]
push edx
jmp 0x100069fe
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [edx], ecx
mov edx, dword [ebp - 0xc]
mov ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d620
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d620
mov esp, ebp
pop ebp
ret