Function at 0x425150
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x4c
call method.Server.InitTrafficLoop__
test al, al
jne 0x425170
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [esp + 0x38]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov eax, dword [ebx + 0xc8]
mov dword [esp + 0x38], 1
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
cmp eax, 0xffffffff
je 0x425420
mov edi, dword [ebx]
mov eax, dword [edi + 0x78]
mov edx, eax
or edx, 0x20
mov dword [edi + 0x78], edx
mov edx, dword [edi + 0xb0]
test edx, edx
je 0x4251d7
cmp dword [edi + 0xb4], 1
je 0x425448
test ah, 0x10
jne 0x425368
mov ecx, dword [ebx + 0xd4]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x40]
mov dword [ecx + 0x64], edx
mov dword [ecx + 0x60], eax
mov dword [esp + 4], esi
mov dword [esp], 0
call sym._clock_gettime
mov edi, dword [esp + 0x3c]
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x38]
imul edi
mov eax, dword [ebx + 0xb8]
sar edi, 0x1f
mov dword [ebx + 0xc], ecx
sar edx, 6
sub edx, edi
mov dword [ebx + 0x10], edx
mov dword [eax + 0x14], edx
mov edx, dword [ebx]
mov dword [eax + 0x10], ecx
mov edx, dword [edx + 0x448]
mov byte [eax + 0x34], 0
mov dword [eax + 8], edx
sar edx, 0x1f
mov dword [eax + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xd4]
mov dword [esp], eax
call sym._ReportPacket
mov eax, dword [0x4786e0]
test eax, eax
jne 0x4252ab
cmp byte [ebx + 0xc4], 0
jne 0x4252ab
mov edx, dword [ebx]
mov eax, dword [edx + 0x78]
test eax, 0x4000000
jne 0x4253f2
test ah, 0x10
jne 0x4253e8
mov ecx, ebx
call method.Server.WriteBB__
test al, al
je 0x4252ab
mov eax, dword [ebx + 0xb8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xd4]
mov dword [esp], eax
call sym._ReportPacket
mov ecx, ebx
call method.Server.ReadBBWithRXTimestamp__
test al, al
jne 0x425252
call sym._disarm_itimer
mov dword [esp + 4], esi
mov dword [esp], 0
call sym._clock_gettime
mov esi, dword [esp + 0x3c]
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x38]
imul esi
mov eax, dword [ebx + 0xb8]
sar esi, 0x1f
mov dword [ebx + 0xc], ecx
sar edx, 6
sub edx, esi
mov dword [ebx + 0x10], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xd0]
mov dword [esp], eax
call sym._EndJob
test al, al
jne 0x425330
mov eax, dword [ebx]
mov dword [esp], eax
call sym.Iperf_remove_host_thread_Settings_
mov eax, dword [ebx + 0xd0]
mov dword [esp], eax
call sym._FreeReport
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0xc8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
cmp eax, 0xffffffff
jne 0x42530d
mov dword [esp + 8], 0x1df
mov dword [esp + 4], str.Server.cpp
mov dword [esp], str.server_close
call sym._warn_errno
jmp 0x42530d
imul ecx, dword [edi + 0xac], 0x2710
mov eax, 0x2710
mul dword [edi + 0xa8]
add edx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fild qword [esp + 0x20]
jns 0x425393
fadd dword [0x460e4c]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fmul dword [0x460e48]
fnstcw word [esp + 0x2e]
mov dword [esp], edi
movzx eax, word [esp + 0x2e]
or ah, 0xc
mov word [esp + 0x2c], ax
fldcw word [esp + 0x2c]
fistp dword [esp + 0x20]
fldcw word [esp + 0x2e]
mov ebp, dword [esp + 0x20]
mov dword [esp + 4], ebp
call sym._SetSocketOptionsSendTimeout
mov dword [esp + 4], ebp
mov eax, dword [ebx]
mov dword [esp], eax
call sym._SetSocketOptionsReceiveTimeout
jmp 0x4251e0
test byte [edx + 0x7c], 4
je 0x42527d
mov eax, dword [ebx + 0xb8]
mov edi, dword [ebx + 4]
cmp dword [eax + 0x10], edi
jg 0x4252ab
jne 0x42527d
mov edi, dword [ebx + 8]
cmp dword [eax + 0x14], edi
jg 0x4252ab
jmp 0x42527d
mov dword [esp + 8], 0x1b2
mov dword [esp + 4], str.Server.cpp
mov dword [esp], str.setsockopt_BB_TCP_NODELAY
call sym._warn_errno
jmp 0x4251b3
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
fild qword [esp + 0x20]
fmul dword [0x460e48]
fstp qword [esp]
call sym._round
jmp 0x4253a1