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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
lea edi, [ebp - 0x104]
mov ecx, 0x41
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 0xc8000
call fcn.00402330
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x30], 0x35
mov byte [ebp - 0x2f], 0x30
mov byte [ebp - 0x2e], 0x30
xor eax, eax
mov dword [ebp - 0x2d], eax
mov dword [ebp - 0x29], eax
mov dword [ebp - 0x25], eax
mov byte [ebp - 0x21], al
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb8], 0
mov byte [ebp - 0xbc], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.start_video_recv_serv__ip:_s__chan:_s_n
call fcn.00401ad0
add esp, 0xc
push 0x42516c
push str.video_recv.mp4
call fcn.004048a0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401159
movsx eax, word [0x427a30]
add eax, 0x15
push eax
push str.E:VCMSDev98MyProjects_video_recv_recv.c
push str.fd___NULL
call fcn.00404430
add esp, 0xc
push 0x302
push str.log.txt
call fcn.0040e310
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401191
movsx edx, word [0x427a30]
add edx, 0x18
push edx
push str.E:VCMSDev98MyProjects_video_recv_recv.c
push str.logFd____1
call fcn.00404430
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00404350
add esp, 8
lea eax, [ebp - 0x20]
push eax
push 0x4250f0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00404280
add esp, 0xc
mov dx, word [ebp - 0x20]
push edx
call fcn.004016d0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x4011de
push str.build_tcp_listen_failed._n
call fcn.00401ad0
add esp, 4
jmp 0x401574
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WSOCK32.dll_accept]
cmp esi, esp
call fcn.00401b50
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401229
push str.accept_failed__n
call fcn.00401ad0
add esp, 4
push str.accept
call fcn.004041c0
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402d70
add esp, 4
jmp 0x401574
mov edx, 1
test edx, edx
je 0x401544
cmp dword [ebp - 0xc0], 0
jne 0x401290
push 0xc8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.004022d0
add esp, 0xc
mov esi, esp
push 0
push 0xc8000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp esi, esp
call fcn.00401b50
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jge 0x40128e
push str.recv_failed._n
call fcn.00401ad0
add esp, 4
jmp 0x401229
jmp 0x4012ee
mov esi, esp
push 0
mov eax, 0xc8000
sub eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp esi, esp
call fcn.00401b50
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jge 0x4012dc
push str.recv_failed._n
call fcn.00401ad0
add esp, 4
jmp 0x401229
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0xc4]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
push 0x80
push 0
lea edx, [ebp - 0xb0]
push edx
call fcn.004022d0
add esp, 0xc
mov eax, dword [ebp - 0xb4]
push eax
push str.recvLen:_d._n
lea ecx, [ebp - 0xb0]
push ecx
call fcn.004021d0
add esp, 0xc
push 0x80
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00406c00
add esp, 0xc
mov ecx, dword [ebp - 0xb4]
push ecx
push str.recvLen:_d._n
call fcn.00401ad0
add esp, 8
cmp dword [ebp - 0xb4], 0xa
jle 0x4014f6
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00401930
add esp, 0x10
test eax, eax
je 0x40138f
push str.getZmqPushData_failed._n
call fcn.00401ad0
add esp, 4
jmp 0x401351
mov eax, dword [ebp - 0xbc]
and eax, 0xff
mov ecx, dword [ebp - 0xb8]
add ecx, eax
cmp ecx, dword [ebp - 0xb4]
jbe 0x4013dc
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401e90
add esp, 0xc
mov dword [ebp - 0xc0], 1
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], edx
jmp 0x4014f6
mov eax, dword [ebp - 0xbc]
and eax, 0xff
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x18], ecx
push 0x80
push 0
lea edx, [ebp - 0xb0]
push edx
call fcn.004022d0
add esp, 0xc
mov eax, dword [ebp - 0xb8]
push eax
push str.write2video:dataLen_d_n
lea ecx, [ebp - 0xb0]
push ecx
call fcn.004021d0
add esp, 0xc
push 0x80
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00406c00
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401c70
add esp, 0x10
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], 0
mov ecx, dword [ebp - 0xb4]
sub ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xbc]
and edx, 0xff
sub ecx, edx
mov dword [ebp - 0xb4], ecx
cmp dword [ebp - 0xb4], 0
jle 0x4014a8
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
and ecx, 0xff
add eax, ecx
mov dword [ebp - 0x1c], eax
push 0x80
push 0
lea edx, [ebp - 0xb0]
push edx
call fcn.004022d0
add esp, 0xc
mov eax, dword [ebp - 0xb4]
push eax
push str.left_recvLen:_d._n
lea ecx, [ebp - 0xb0]
push ecx
call fcn.004021d0
add esp, 0xc
push 0x80
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00406c00
add esp, 0xc
jmp 0x401351
cmp dword [ebp - 0xb4], 1
jge 0x401504
jmp 0x401229
cmp dword [ebp - 0xb4], 0xa
jg 0x40153f
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401e90
add esp, 0xc
mov dword [ebp - 0xc0], 1
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], ecx
jmp 0x401229
jmp 0x401229
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401b90
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.004065e0
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004065e0
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402d70
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
cmp ebp, esp
call fcn.00401b50
mov esp, ebp
pop ebp
ret