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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 0x228]
push edi
xor edi, edi
push 0
mov ecx, 8
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x30]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4032ad
test eax, eax
je 0x4032c1
add edi, eax
cmp edi, 8
jne 0x403265
mov eax, edi
mov ecx, dword [esp + 0x38]
add dword [ecx], eax
cmp dword [ecx], 0xffffffff
jne 0x4032e4
mov eax, dword [esp + 0x3c]
mov dword [eax], 0xffffffff
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x40328d
test esi, esi
je 0x4032df
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or eax, 0xffffffff
jmp 0x40328d
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 1
je 0x403322
push str.Only_BPF_NPF_filters_are_currently_supported
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x18]
lea ecx, [eax*8]
push ecx
call fcn.004079c3
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403368
call fcn.00407692
mov edx, dword [eax]
push edx
call sub.wpcap.dll_pcap_strerror
push eax
push str.malloc___failed:__s
push 0x100
push esi
call fcn.0040722a
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], 0
jbe 0x403414
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 0x228]
xor edi, edi
lea esp, [esp]
push 0
mov ecx, 8
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x28]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403430
test eax, eax
je 0x403447
add edi, eax
cmp edi, 8
jne 0x403390
mov eax, edi
mov ecx, dword [esp + 0x38]
add dword [ecx], eax
cmp dword [ecx], 0xffffffff
je 0x4032a2
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp], ax
mov cl, byte [esp + 0x23]
mov byte [ebp + 3], cl
mov dl, byte [esp + 0x22]
mov byte [ebp + 2], dl
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x18]
add ecx, 1
add ebp, 8
cmp ecx, eax
mov dword [esp + 0x14], ecx
jb 0x403380
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call sub.wpcap.dll_bpf_validate
add esp, 8
test eax, eax
jne 0x40346d
push str.The_filter_contains_bogus_instructions
jmp 0x403309
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x4033c0
test esi, esi
je 0x403465
push str.The_other_host_terminated_the_connection.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or eax, 0xffffffff
jmp 0x4033c0
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push edi
call sub.wpcap.dll_pcap_setfilter
add esp, 8
test eax, eax
je 0x4034a8
add edi, 0x108
push edi
push str.RPCAP_error:__s
push 0x100
push esi
call fcn.0040722a
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret