Function at 0x40a0f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x60]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x60]
mov dword [esp], eax
call sym._recvn
mov edi, eax
mov eax, dword [ebp + 0x2c]
test edi, edi
je 0x40a2d0
cmp edi, 3
jle 0x40a2b0
lea ebx, [eax + edi]
mov eax, dword [eax]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x1c], eax
test eax, 0x800000
je 0x40a310
mov eax, dword [ebp + 0x78]
test eax, 0x4000000
jne 0x40a169
and ah, 0xef
mov dword [ebp + 0x78], eax
or dword [ebp + 0x80], 0x100
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x60]
mov dword [esp], eax
call sym._recvn
cmp eax, 0x40
jne 0x40a2f0
mov eax, dword [edi + 4]
add ebx, 0x40
mov dword [esp], eax
call esi
mov dword [ebp + 0x448], eax
sub esp, 4
cmp eax, dword [ebp + 0x68]
jle 0x40a1d5
test byte [ebp + 0x78], 1
jne 0x40a6b8
sub ebx, dword [ebp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sym._Settings_Grow_mBuf
mov edi, dword [ebp + 0x2c]
add ebx, edi
mov eax, dword [edi + 0x2c]
mov dword [esp], eax
call esi
mov dword [ebp + 0x458], eax
movzx eax, word [edi + 0xc]
sub esp, 4
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [esp + 0x28], eax
call eax
sub esp, 4
mov edx, eax
test ah, 0x40
jne 0x40a650
test dh, 0x20
jne 0x40a690
and dh, 8
jne 0x40a640
mov eax, dword [ebp + 0x448]
mov dword [ebp + 0x44c], eax
cmp dword [ebp + 0x68], eax
jge 0x40a247
test byte [ebp + 0x78], 1
jne 0x40a530
sub ebx, dword [ebp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sym._Settings_Grow_mBuf
mov edi, dword [ebp + 0x2c]
add ebx, edi
mov esi, dword [ebp + 0x448]
sub esi, 0x44
js 0x40a718
je 0x40a4a0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x60]
mov dword [esp], eax
call sym._recvn
cmp esi, eax
je 0x40a4a0
mov dword [esp + 8], 0x438
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.read_bounce_back_payload_failed
call sym._warn
lea esi, [esi]
nop
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 8], 0x3ef
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.read_tcp_flags__runt_
call sym._warn
jmp 0x40a2a0
mov dword [esp + 8], 0x3eb
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.read_tcp_flags__peer_close_
call sym._warn
jmp 0x40a2a0
mov dword [esp + 8], 0x3fe
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.read_bounce_back_header_failed
call sym._warn
jmp 0x40a2a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sym._Settings_ClientTestHdrLen
mov edx, eax
test eax, eax
jle 0x40a490
mov eax, dword [ebp + 0x68]
sub eax, edi
cmp eax, edx
jl 0x40a6f0
lea eax, [edx - 4]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x28], edx
mov dword [esp], eax
call sym._recvn
mov edx, dword [esp + 0x28]
lea ebx, [edi + eax]
cmp edx, ebx
jg 0x40a558
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x10]
and eax, 0x10000000
test byte [ecx + 0x7f], 0x10
jne 0x40a588
test eax, eax
jne 0x40a6e0
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x444], ebx
mov ebx, dword [ebp + 0x2c]
test eax, eax
js 0x40a740
test dword [esp + 0x1c], 0x40000000
je 0x40a490
movzx eax, word [ebx + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov dword [esp], eax
call edi
mov ecx, eax
movzx eax, word [ebx + 0x22]
sub esp, 4
mov dword [esp + 0x20], ecx
mov dword [esp], eax
call edi
sub esp, 4
mov word [esp + 0x28], ax
movzx eax, word [ebx + 0x2e]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
sub esp, 4
mov dword [ebp + 0x50], eax
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call esi
mov dword [ebp + 0x394], eax
mov eax, dword [ebx + 0x28]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebp + 0x398], eax
mov ecx, dword [esp + 0x20]
test cl, 1
je 0x40a41b
or dword [ebp + 0x7c], 8
test ch, 0x10
jne 0x40a819
test cl, 0x10
jne 0x40a796
test ch, 0x20
jne 0x40a880
test word [esp + 0x28], 0x4000
jne 0x40a778
test dword [esp + 0x1c], 0x4000000
je 0x40a490
test ch, 8
je 0x40a459
or dword [ebp + 0x7c], 0xc0000
and ch, 4
je 0x40a490
mov eax, dword [ebp + 0x38]
or dword [ebp + 0x7c], 0x40000
mov dword [ebp + 0x84], 2
test eax, eax
je 0x40a490
mov eax, dword [eax + 0x18]
or dword [eax + 0x10], 0x40000
mov dword [eax], 2
lea esi, [esi]
lea esi, [esi]
test byte [ebp + 0x79], 8
je 0x40a4f0
mov eax, 1
jmp 0x40a2a2
lea eax, [esp + 0x38]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._clock_gettime
mov esi, dword [esp + 0x3c]
mov eax, 0x10624dd3
imul esi
mov eax, dword [esp + 0x38]
sar esi, 0x1f
mov dword [esp], eax
sar edx, 6
mov ebx, edx
sub ebx, esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
sub esp, 4
mov dword [edi + 0x1c], eax
mov dword [esp], ebx
call esi
mov dword [edi + 0x20], eax
sub esp, 4
jmp 0x40a490
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
test byte [eax + 0x78], 2
jne 0x40a496
mov edx, dword [esp + 0x1c]
mov eax, edx
and eax, 0x44000000
cmp eax, 0x40000000
je 0x40a51b
and edx, 0x2000000
je 0x40a496
mov eax, ebp
call method.Listener.client_test_ack_thread_Settings___clone_.part.0_
jmp 0x40a496
mov dword [esp + 8], 0x426
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.Buffer_length___l__too_small_for_bounceback_reply._Increase__l_size_or_dont_set__for_auto_adjust_
call sym._warn
jmp 0x40a2a0
mov dword [esp + 8], 0x44d
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.read_tcp_test_info
call sym._warn_errno
mov dword [esp], ebp
call sym._thread_stop
mov edx, dword [esp + 0x28]
jmp 0x40a368
test eax, eax
je 0x40a6e0
mov eax, dword [ebp + 0x2c]
lea edi, [eax + edx - 2]
movzx eax, word [edi]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
sub esp, 4
lea eax, [edx - 4]
mov dword [esp + 0x28], edx
cmp eax, 0x7c
ja 0x40a6e0
lea eax, [ebp + 0x3a8]
mov dword [esp], eax
mov dword [esp + 0x20], eax
call sym._strlen
mov edx, dword [esp + 0x28]
cmp edx, eax
jne 0x40a6e0
test byte [ebp + 0x79], 8
je 0x40a95d
add edi, 2
mov dword [esp + 4], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 8], 0x81
mov dword [esp], edi
mov dword [esp + 0x28], edx
call sym._strncpy
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x10]
mov dword [esp], edi
mov dword [esp + 0x28], eax
add eax, 0x3a8
mov dword [esp + 4], eax
call sym._strncmp
test eax, eax
jne 0x40a6e0
mov byte [ebp + 0x434], 1
jmp 0x40a38a
mov eax, dword [edi + 0x3c]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x40a21e
or dword [ebp + 0x7c], 0x2000
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp], eax
call esi
mov dword [ebp + 0x378], eax
mov eax, dword [edi + 0x18]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebp + 0x37c], eax
mov edx, dword [esp + 0x20]
jmp 0x40a206
movzx eax, word [edi + 0xe]
mov dword [esp + 0x20], edx
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
sub esp, 4
movzx eax, ax
mov dword [ebp + 0x50], eax
mov edx, dword [esp + 0x20]
jmp 0x40a20f
mov dword [esp + 8], 0x406
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.Buffer_length___l__too_small_for_bounceback_request._Increase__l_size_or_dont_set__for_auto_adjust_
call sym._warn
jmp 0x40a2a0
mov byte [ebp + 0x434], 0
jmp 0x40a2a0
mov dword [esp + 8], 0x447
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.read_tcp_header_too_large
call sym._warn
jmp 0x40a2a0
mov dword [esp + 8], 0x432
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.bounce_back_bytes_too_small
call sym._warn
jmp 0x40a2a0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
sub esp, 4
test eax, eax
js 0x40a8ff
mov eax, dword [esp + 0x1c]
test eax, 0x4000000
jne 0x40a39f
test al, 1
sete al
movzx eax, al
add eax, 1
mov dword [ebp + 0x8c], eax
jmp 0x40a39f
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebp + 0x39c], eax
mov ecx, dword [esp + 0x28]
jmp 0x40a443
lea eax, [esp + 0x38]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x20], ecx
call sym._clock_gettime
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call esi
mov dword [ebp + 0x378], eax
mov eax, dword [ebx + 0x44]
sub esp, 4
mov dword [esp], eax
call esi
mov edi, dword [ebp + 0x7c]
sub esp, 4
mov dword [ebp + 0x37c], eax
test edi, 0x200
mov ecx, dword [esp + 0x20]
jne 0x40a804
mov eax, dword [esp + 0x2c]
sub eax, dword [ebp + 0x378]
mov edx, eax
neg edx
cmovs edx, eax
cmp edx, 0x259
jg 0x40a9b8
or edi, 0x2000
or dword [ebp + 0x78], 0x2000000
mov dword [ebp + 0x7c], edi
jmp 0x40a42d
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x20], ecx
mov dword [esp], eax
call esi
mov dword [ebp + 0x368], eax
mov eax, dword [ebx + 0x44]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebp + 0x36c], eax
lea eax, [esp + 0x38]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._clock_gettime
mov eax, dword [esp + 0x38]
sub eax, dword [ebp + 0x368]
mov edx, eax
mov ecx, dword [esp + 0x20]
neg edx
cmovs edx, eax
cmp edx, 0xe11
jg 0x40a928
or dword [ebp + 0x7c], 0x200
jmp 0x40a424
mov edi, dword [ebp + 0x2c]
or dword [ebp + 0x78], 0x2000000
or dword [ebp + 0x7c], 0x1000000
or dword [ebp + 0x80], 1
mov eax, dword [edi + 0x50]
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x24], 0
fild qword [esp + 0x20]
fstp qword [ebp + 0x320]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
fild qword [esp + 0x20]
fdiv dword [0x45a9ac]
fadd qword [ebp + 0x320]
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x40a8f4
je 0x40a919
fstp qword [ebp + 0x320]
jmp 0x40a436
or dword [ebp + 0x80], 0x800000
shr eax, 0x14
and eax, 0x7ff
mov dword [ebp + 0x5c], eax
jmp 0x40a39f
fstp st(0)
fld1
fstp qword [ebp + 0x320]
jmp 0x40a436
mov dword [esp], 1
call dword [0x459154]
mov dword [esp + 8], 0xe10
mov dword [esp + 4], str.WARN:_ignore___txstart_time_because_client_didnt_provide_valid_start_timestamp_within__d_seconds_of_now_n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
and dword [ebp + 0x7c], 0xfffffdff
mov ecx, dword [esp + 0x20]
jmp 0x40a424
add edi, 2
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x28], edx
mov dword [esp], eax
call sym._recvn
mov edx, dword [esp + 0x28]
cmp edx, eax
jle 0x40a5e4
mov dword [esp + 8], 0x362
mov dword [esp + 4], str.Listener.cpp
mov dword [esp], str.read_key
call sym._warn_errno
mov dword [esp], ebp
call sym._thread_stop
mov edx, dword [esp + 0x28]
jmp 0x40a5e4
mov dword [esp], 1
call dword [0x459154]
mov dword [esp + 8], 0x258
mov dword [esp + 4], 0x45a728
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
and dword [ebp + 0x7c], 0xffffdfff
mov ecx, dword [esp + 0x20]
jmp 0x40a42d