Function at 0x407130
Capabilities:
Get socket status
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x14c
mov eax, dword [ecx + 0xc8]
mov byte [ebp - 0x12c], 0
mov edx, dword [eax + 0x7c]
test edx, 0x80000
je 0x407160
test byte [eax + 0x79], 8
jne 0x4074a8
mov dword [esp], eax
call sym._InitIndividualReport
mov edx, dword [edi + 0xcc]
mov ecx, dword [eax + 8]
mov dword [edi], eax
mov eax, dword [ecx + 0x20]
mov dword [edi + 0xd0], ecx
mov dword [eax + 0x26c], edx
mov eax, dword [edi + 0xc8]
mov byte [ecx + 0x83e], 0
mov edx, dword [eax + 0x7c]
test dl, 4
jne 0x4071a4
cmp dword [eax + 0x88], 1
je 0x407520
mov esi, dword [edi + 0xa8]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test edx, 0x40000
jne 0x4071cc
mov ebx, dword [eax + 0x78]
test bl, 2
je 0x407460
test dh, 0x20
jne 0x4071da
test byte [eax + 0x80], 1
je 0x407221
xor ecx, ecx
xor ebx, ebx
test edx, 0x20000
jne 0x40721b
test byte [eax + 0x79], 8
je 0x4071fe
mov eax, dword [eax + 0x478]
test eax, eax
jle 0x4071fe
mov dword [esp], eax
call sym._delay_loop
mov ecx, edi
call method.Client.SendFirstPayload____clone_.part.0_
mov esi, dword [edi + 0xa8]
mov ebx, eax
mov ecx, eax
mov eax, dword [edi + 0xc8]
sar ebx, 0x1f
mov edx, dword [eax + 0x7c]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
and edx, 8
jne 0x407350
test dword [eax + 0x80], 0x101
jne 0x407350
mov edx, dword [eax + 0x7c]
and edx, 0xc0000
cmp edx, 0x80000
je 0x4074d0
mov ecx, edi
call method.Client.SetReportStartTime__
mov eax, dword [edi + 0xa8]
xor edx, edx
mov dword [ebp - 0x12c], 0
mov ebx, dword [eax + 8]
mov esi, dword [eax + 0xc]
cmp edx, ebx
mov dword [ebp - 0x138], ebx
sbb edx, esi
mov dword [ebp - 0x134], esi
jge 0x407340
mov esi, dword [edi + 0xd0]
mov dword [eax + 0x30], 6
mov ecx, dword [esi + 0x40]
mov ebx, dword [esi + 0x44]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ebx
mov ebx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [eax + 0x1c], ebx
mov ebx, dword [edi + 0xc8]
mov dword [eax + 0x18], ecx
test byte [ebx + 0x79], 0x10
je 0x407430
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._ReportPacket
mov ecx, dword [edi + 0xa8]
mov ebx, dword [edi + 0xd0]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
add dword [ecx], 1
adc dword [ecx + 4], 0
mov ecx, dword [ebp - 0x12c]
test ecx, ecx
je 0x407340
mov ebx, dword [edi + 0xd0]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ecx + 0x38]
test edx, edx
jne 0x407340
mov eax, dword [ecx + 0x3c]
test eax, eax
jne 0x407340
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
mov dword [ecx + 0x38], eax
mov eax, dword [edi + 0xc8]
mov dword [ecx + 0x3c], edx
test byte [eax + 0x79], 0x10
jne 0x4076f0
lea esi, [esi]
nop
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x11c]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._clock_gettime
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x124], eax
mov eax, 0x10624dd3
imul ecx
sar ecx, 0x1f
mov eax, dword [edi + 0xc8]
sar edx, 6
sub edx, ecx
mov dword [ebp - 0x120], edx
test byte [eax + 0x7d], 2
je 0x4073b1
mov edx, dword [eax + 0x36c]
mov ecx, dword [eax + 0x368]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], ecx
fldz
fld qword [eax + 0x320]
fcompi st(1)
fstp st(0)
jbe 0x40723a
mov dword [esp], 0x38
call sym.operator_new_unsigned_int_
mov ebx, eax
lea eax, [ebp - 0x124]
mov dword [esp + 8], eax
mov eax, dword [edi + 0xc8]
mov ecx, ebx
fld qword [eax + 0x320]
fstp qword [esp]
call method.Isochronous::FrameCounter.FrameCounter_double__Timestamp_const_
mov eax, dword [edi + 0xc8]
mov dword [edi + 0x100], ebx
sub esp, 0xc
test byte [eax + 0x79], 8
jne 0x40723a
mov ecx, ebx
mov esi, dword [eax + 0x2c]
call method.Isochronous::FrameCounter.period_us__
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x28], eax
sub esp, 4
mov eax, dword [edi + 0xc8]
jmp 0x40723a
test byte [ebx + 0x7e], 1
jne 0x4072c5
mov edx, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
sub dword [ebx + 0xa8], edx
sbb dword [ebx + 0xac], ecx
jmp 0x4072c5
test byte [eax + 0x81], 1
je 0x407548
test dh, 2
je 0x40747f
cmp byte [ebp - 0x12c], 0
je 0x4076d0
test dh, 0x40
je 0x407221
add eax, 0x360
mov dword [esp], eax
call sym._clock_usleep
mov eax, dword [edi + 0xc8]
mov edx, dword [eax + 0x7c]
jmp 0x407221
mov byte [ebp - 0x12c], 1
and dh, 2
je 0x407160
add eax, 0x368
mov dword [esp], eax
call sym._clock_usleep_abstime
mov eax, dword [edi + 0xc8]
jmp 0x407160
mov eax, dword [eax + 0x3c]
add eax, 0x914
mov dword [esp], eax
call sym._fullduplex_start_barrier
mov dword [ebp - 0x12c], eax
test eax, eax
js 0x407701
mov ecx, edi
call method.Client.SetReportStartTime__
mov eax, dword [edi + 0xa8]
xor edx, edx
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
cmp edx, ecx
mov dword [ebp - 0x138], ecx
sbb edx, ebx
mov dword [ebp - 0x134], ebx
jl 0x407284
jmp 0x4072fe
add ecx, 0x20
mov dword [esp + 4], 0
mov dword [esp], ecx
call sym._format_ips_port_string
mov eax, dword [edi + 0xc8]
mov edx, dword [eax + 0x7c]
jmp 0x4071a4
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
test edx, 0x20000
jne 0x4075a5
mov esi, ebx
and esi, 0x800
je 0x407580
mov eax, dword [eax + 0x478]
test eax, eax
jle 0x407580
mov dword [esp], eax
call sym._delay_loop
mov ecx, edi
call method.Client.SendFirstPayload____clone_.part.0_
mov esi, dword [edi + 0xa8]
mov dword [ebp - 0x138], eax
sar eax, 0x1f
mov dword [ebp - 0x134], eax
mov eax, dword [edi + 0xc8]
mov edx, dword [eax + 0x7c]
mov ecx, dword [ebp - 0x138]
mov ebx, dword [ebp - 0x134]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
test dl, 4
je 0x40746d
test byte [eax + 0x79], 8
je 0x40746d
mov dword [esi + 8], 0
movzx ebx, byte [ebp - 0x12c]
mov dword [esi + 0xc], 0
mov esi, 0x63
jmp 0x407635
mov ecx, dword [edi + 0xc8]
xor eax, eax
xor edx, edx
test byte [ecx + 0x7e], 2
jne 0x407620
test byte [ecx + 0x79], 8
je 0x407618
mov eax, dword [ecx + 0x478]
test eax, eax
jle 0x407618
mov dword [esp], eax
call sym._delay_loop
mov ecx, edi
call method.Client.SendFirstPayload____clone_.part.0_
cdq
mov ecx, dword [edi + 0xa8]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
sub esi, 1
je 0x4076bc
mov dword [ebp - 0x11c], 1
mov eax, dword [edi + 0xcc]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], eax
call sym._rand
mov ecx, eax
mov eax, 0x68db8bad
imul ecx
mov eax, ecx
sar eax, 0x1f
sar edx, 0xd
sub edx, eax
lea eax, [ebp - 0x124]
imul edx, edx, 0x4e20
sub ecx, edx
mov dword [ebp - 0x120], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [edi + 0xcc]
add eax, 1
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
test eax, eax
je 0x4075f0
mov eax, dword [edi + 0xc8]
mov byte [ebp - 0x12c], bl
mov edx, dword [eax + 0x7c]
jmp 0x40746d
add eax, 0x368
mov dword [esp], eax
call sym._clock_usleep_abstime
mov eax, dword [edi + 0xc8]
mov edx, dword [eax + 0x7c]
jmp 0x407221
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
jmp 0x407340
mov eax, 0xffffffff
jmp 0x407342