Function at 0x425490
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x3c
call method.Server.InitTrafficLoop__
mov byte [esp + 0x1b], al
test al, al
je 0x4256ea
mov ebx, dword [0x4786e0]
test ebx, ebx
jne 0x4256ea
xor edi, edi
lea esi, [esi]
cmp byte [ebp + 0xc4], 0
jne 0x4256ea
mov edx, dword [ebp]
mov eax, dword [edx + 0x78]
test eax, 0x4000000
jne 0x425750
test ah, 0x10
je 0x4254f0
test byte [edx + 0x7c], 4
jne 0x425750
lea esi, [esi]
mov eax, edi
test al, al
jne 0x4256ea
mov eax, dword [ebp + 0xb8]
mov byte [eax + 0x34], 1
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x30], 1
mov eax, dword [edx + 0x348]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x68]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x60]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov esi, eax
test eax, eax
jle 0x425778
mov ecx, dword [ebp + 0xd4]
mov edx, dword [ecx + 0x58]
test edx, edx
jne 0x425570
mov eax, dword [ecx + 0x5c]
test eax, eax
jne 0x425570
mov eax, dword [ebp + 0xb8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x58], eax
lea eax, [esp + 0x28]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._clock_gettime
mov ebx, dword [esp + 0x2c]
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x28]
imul ebx
mov eax, dword [ebp + 0xb8]
sar ebx, 0x1f
mov dword [ebp + 0xc], ecx
sar edx, 6
sub edx, ebx
cmp byte [ebp + 0xc4], 0
mov dword [ebp + 0x10], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jne 0x4258c0
mov ebx, dword [ebp]
mov edi, esi
mov edx, dword [ebp + 0xd4]
mov byte [eax + 0x34], 0
sar edi, 0x1f
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov edi, dword [ebx + 0x7c]
mov dword [esp + 0x14], ebx
test edi, 0x100
je 0x4258d0
mov dword [eax + 0x3c], esi
mov dword [eax + 0x38], 0
mov edi, dword [ebx + 0x7c]
mov ecx, dword [edx + 0x60]
mov ebx, dword [edx + 0x64]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov ebx, dword [edx + 0x5c]
mov ecx, dword [edx + 0x58]
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x344]
add ebx, dword [eax + 0x2c]
and edi, 2
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x14], eax
je 0x425980
call eax
mov edi, eax
mov eax, dword [ebx + 0xc]
sub esp, 4
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
mov ecx, dword [ebp + 0xb8]
mov edx, eax
sub esp, 4
mov eax, edi
mov dword [ecx], edi
mov dword [ecx + 4], edx
xor edi, edi
test edx, edx
jns 0x42566a
neg eax
movzx edi, byte [esp + 0x1b]
adc edx, 0
mov dword [ecx], eax
neg edx
mov dword [ecx + 4], edx
mov eax, dword [ebx + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
mov edx, dword [ebp + 0xb8]
sub esp, 4
mov dword [edx + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
mov edx, eax
mov eax, dword [ebp + 0xb8]
sub esp, 4
mov dword [eax + 0x24], edx
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
mov edx, dword [ebp + 0xd4]
mov dword [edx + 0x60], ecx
mov dword [edx + 0x64], ebx
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov dword [edx + 0x58], ecx
mov ecx, dword [ebp]
mov dword [edx + 0x5c], ebx
test byte [ecx + 0x7c], 8
jne 0x4259d0
lea esi, [esi]
nop
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._ReportPacket
mov ecx, dword [0x4786e0]
test ecx, ecx
je 0x4254c0
call sym._disarm_itimer
mov eax, dword [ebp + 0xb8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xd0]
mov dword [esp], eax
call sym._EndJob
mov edx, dword [ebp]
test byte [edx + 0x79], 0x40
jne 0x425720
test byte [edx + 0x7e], 0x20
je 0x4259a0
lea esi, [esi]
test al, al
jne 0x425928
mov eax, dword [ebp]
mov dword [esp], eax
call sym.Iperf_remove_host_thread_Settings_
mov eax, dword [ebp + 0xd0]
mov dword [esp], eax
call sym._FreeReport
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xb8]
mov esi, dword [ebp + 4]
cmp dword [eax + 0x10], esi
jg 0x4256ea
jne 0x4254f0
mov esi, dword [ebp + 8]
cmp dword [eax + 0x14], esi
jg 0x4256ea
jmp 0x4254f0
mov eax, dword [ebp + 0xb8]
mov byte [eax + 0x34], 1
jne 0x4258e8
mov byte [ebp + 0xc4], 1
lea eax, [esp + 0x28]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._clock_gettime
mov ebx, dword [esp + 0x2c]
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x28]
imul ebx
mov eax, dword [ebp + 0xb8]
sar ebx, 0x1f
mov dword [ebp + 0xc], ecx
sar edx, 6
sub edx, ebx
mov dword [ebp + 0x10], edx
mov dword [eax + 0x14], edx
mov edx, dword [ebp + 0xd4]
mov dword [eax + 0x10], ecx
jmp 0x4256d0
mov ebx, dword [ecx + 0x2c]
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
mov edx, dword [ebp + 0xb8]
sub esp, 4
mov dword [edx + 0x44], eax
mov eax, dword [ebx + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
mov edx, dword [ebp + 0xb8]
sub esp, 4
mov dword [edx + 0x48], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x50], eax
mov edx, dword [ebp + 0xb8]
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x4c], eax
mov edx, dword [ebp + 0xb8]
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x54], eax
mov edx, dword [ebp + 0xb8]
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x58], eax
mov edx, dword [ebp + 0xb8]
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call eax
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp + 0xb8]
cmp dword [eax + 0x5c], esi
jne 0x4258c0
mov edx, dword [eax + 0x50]
sub edx, dword [eax + 0x4c]
cmp edx, 1
jne 0x4258c0
mov byte [eax + 0x60], 1
nop
mov edx, dword [ebp + 0xd4]
jmp 0x4256d0
test byte [eax + 0x38], 1
je 0x4255f2
xor edi, edi
jmp 0x4256d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
cmp ebx, 0x2733
je 0x425968
mov dword [esp + 8], 0x31e
mov dword [esp + 4], str.Server.cpp
mov dword [esp], str.recvmsg
call sym._warn_errno
jmp 0x425788
mov eax, dword [ebp + 0xc8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
cmp eax, 0xffffffff
jne 0x425728
mov dword [esp + 8], 0x41f
mov dword [esp + 4], str.Server.cpp
mov dword [esp], str.server_close
call sym._warn_errno
jmp 0x425728
mov eax, dword [ebp + 0xb8]
mov dword [eax + 0x30], 2
jmp 0x42578f
call eax
mov ecx, dword [ebp + 0xb8]
cdq
sub esp, 4
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x425653
mov edx, dword [edx + 0x68]
mov byte [esp + 0x14], al
mov dword [esp + 4], edx
mov eax, dword [ebp + 0xd4]
lea edx, [eax + 0x20]
mov dword [esp], edx
call sym._write_UDP_AckFIN
movzx eax, byte [esp + 0x14]
jmp 0x425720
mov byte [eax + 0x60], 0
cmp esi, 0x6f
jg 0x4257d7
mov dword [eax + 0x54], 0
mov dword [eax + 0x5c], 0
mov dword [eax + 0x50], 0
jmp 0x4256d0