Function at 0x10715e90
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
cmp eax, 3
push edi
je 0x10715eb7
cmp eax, 5
je 0x10715eb7
cmp eax, 4
jne 0x107160cf
cmp dword [esi + 0x2c], 0
je 0x1071607b
mov edx, dword [sym.IpDrv.dll_int_FInternetLink::ThrottleSend]
test edx, edx
mov ecx, dword [sym.IpDrv.dll_int_FInternetLink::BandwidthSendBudget]
je 0x10715ed9
test ecx, ecx
jle 0x1071607b
mov eax, dword [esi + 0x2c]
cmp eax, 0x1000
jle 0x10715ee8
mov eax, 0x1000
test edx, edx
je 0x10715ef2
cmp eax, ecx
jle 0x10715ef2
mov eax, ecx
mov ecx, dword [esi + 0x28]
push 0
push eax
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x28]
push ecx
push eax
call fcn.1070a560
mov edi, eax
cmp edi, dword [esi + 0x2c]
jne 0x10715f99
add dword [esi + 0x38], edi
rdtsc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
test ecx, ecx
jge 0x10715f2f
fadd qword [0x1072c230]
mov edx, dword [esp + 0x20]
fmul qword [0x1072c230]
test edx, edx
fild dword [esp + 0x20]
jge 0x10715f47
fadd qword [0x1072c230]
mov eax, dword [0x10723200]
faddp st(1)
fnstcw word [esp + 0xe]
fmul qword [eax]
movzx eax, word [esp + 0xe]
or eax, 0xc00
mov dword [esp + 0x10], eax
fadd qword [0x1072c228]
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x40], ecx
cmp dword [sym.IpDrv.dll_int_FInternetLink::ThrottleSend], 0
fldcw word [esp + 0xe]
je 0x10715f8a
sub dword [sym.IpDrv.dll_int_FInternetLink::BandwidthSendBudget], edi
push 0
mov ecx, ebx
call dword [0x10723464]
jmp 0x10716071
cmp edi, 0xffffffff
jne 0x10715fec
call fcn.1070a58a
cmp eax, 0x2733
je 0x1071607b
mov edx, dword [0x10723300]
mov eax, dword [edx]
mov edi, dword [eax]
add edi, 0x20
call fcn.1070a58a
mov ecx, dword [0x10723300]
mov edx, dword [ecx]
push eax
mov eax, dword [edi]
push str.__SendPendingData___got_SOCKET_ERROR:__d
push edx
call eax
add esp, 0xc
push 0
mov ecx, ebx
mov dword [esi + 0x44], 5
call dword [0x10723464]
jmp 0x10716071
push edi
push 0
mov ecx, ebx
call dword [0x10723488]
add dword [esi + 0x38], edi
rdtsc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jge 0x10716016
fadd qword [0x1072c230]
mov edx, dword [esp + 0x1c]
fmul qword [0x1072c230]
test edx, edx
fild dword [esp + 0x1c]
jge 0x1071602e
fadd qword [0x1072c230]
mov eax, dword [0x10723200]
faddp st(1)
fnstcw word [esp + 0xe]
fmul qword [eax]
movzx eax, word [esp + 0xe]
or eax, 0xc00
mov dword [esp + 0x10], eax
fadd qword [0x1072c228]
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x40], ecx
cmp dword [sym.IpDrv.dll_int_FInternetLink::ThrottleSend], 0
fldcw word [esp + 0xe]
je 0x10716071
sub dword [sym.IpDrv.dll_int_FInternetLink::BandwidthSendBudget], edi
cmp dword [esi + 0x2c], 0
jne 0x10715ec1
cmp dword [esi + 0x44], 5
jne 0x10716099
cmp dword [esi + 0x2c], 0
jne 0x10716099
mov edx, dword [esi + 0x18]
push 2
push edx
call fcn.1070a5ba
mov dword [esi + 0x44], 4
cmp dword [esi + 0x44], 4
jne 0x107160cf
mov ecx, dword [esi + 0x18]
push 0
push 0x400
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.1070a55a
test eax, eax
jg 0x107160cf
mov edx, dword [esi + 0x18]
push edx
call fcn.1070a56c
mov dword [esi + 0x44], 0
mov dword [esi + 0x18], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret