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

Disassembly:
mov ecx, dword [0x8ef630]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx + 8]
jbe 0x5e002d
sub esp, 0x98
mov eax, 0
mov dword [esp + 0x94], eax
mov byte [esp + 0x3b], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x5dfb16
movzx edx, byte [esp + 0xa0]
cmp dl, 0x16
jne 0x5dfacf
mov edx, dword [ecx + 0x10]
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x5df898
mov edx, dword [edx]
imul ebx, ebx, 0x1c
lea edx, [edx + ebx - 0x1c]
jmp 0x5df89a
xor edx, edx
mov ebx, dword [ecx + 0x17c]
test edx, edx
je 0x5df8b2
cmp dword [edx], 3
jne 0x5df8b2
cmp dword [edx + 4], ebx
je 0x5df9a5
lea edi, [esp + 0x74]
xor eax, eax
call fcn.00471cf9
mov dword [esp + 0x74], 3
mov dword [esp + 0x78], ebx
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x10]
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 4]
inc ebp
mov eax, dword [edx]
cmp ebx, ebp
jae 0x5df93e
mov dword [esp + 0x64], edx
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6b8960]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
mov dword [ebx + 8], eax
mov eax, dword [0x8ef900]
test eax, eax
je 0x5df92f
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], ecx
mov ebp, edx
mov eax, ecx
mov ecx, dword [esp + 0x9c]
mov edx, ebx
mov dword [edx + 4], ebp
mov edx, dword [0x8ef900]
imul ebx, ebp, 0x1c
lea edi, [eax + ebx - 0x1c]
test edx, edx
je 0x5df97b
mov dword [esp + 0x60], edi
lea eax, [0x6b8960]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov ecx, dword [esp + 0x9c]
mov edi, dword [esp + 0x60]
lea esi, [esp + 0x74]
call fcn.004721ca
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x10]
mov ebx, dword [edx + 4]
lea eax, [ebx - 1]
cmp ebx, eax
jbe 0x5e0019
imul eax, ebx, 0x1c
mov ebx, dword [edx]
lea edx, [ebx + eax - 0x1c]
mov dword [esp + 0x5c], edx
mov eax, dword [edx + 0x10]
mov ebx, dword [edx + 0xc]
mov ebp, dword [esp + 0xa8]
lea esi, [ebx + ebp]
mov edi, dword [edx + 8]
cmp eax, esi
jae 0x5df9f9
mov dword [esp + 0x48], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
lea eax, [0x6954a0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x90], edi
lea ecx, [edi + ebx]
mov dword [esp], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call sym.runtime.memmove
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], eax
mov eax, dword [0x8ef900]
test eax, eax
jne 0x5dfa47
mov eax, dword [esp + 0x90]
jmp 0x5dfa5b
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x90]
mov dword [edi], eax
mov edx, dword [ecx + 8]
mov dword [edi + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x9c]
movzx ecx, byte [eax + 0x1cc]
test cl, cl
jne 0x5dfa80
mov dword [esp], eax
call sym.crypto_tls._Conn_.flush
mov eax, dword [esp + 8]
test eax, eax
jne 0x5dfaab
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
add esp, 0x98
ret
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
add esp, 0x98
ret
lea eax, [0x6a0680]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x44
lea ecx, [0x6e9c8a]
mov dword [eax], ecx
mov dword [esp + 0xb0], 0
lea ecx, [0x7423cc]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
add esp, 0x98
ret
lea eax, [0x8c9f00]
mov dword [esp], eax
call sym.sync._Pool_.Get
mov eax, dword [esp + 4]
lea ecx, [0x68a2e0]
cmp eax, ecx
jne 0x5e0003
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
lea ecx, [sym.crypto_tls._Conn_.writeRecordLocked.func1]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x94], eax
mov byte [esp + 0x3b], 1
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa4]
xor ebx, ebx
jmp 0x5dfbb1
mov ebp, dword [esp + 0x48]
sub ebp, eax
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
sub ecx, eax
mov edi, dword [esp + 0x90]
lea edx, [ebp + edi]
mov eax, ecx
mov ecx, esi
mov dword [esp + 0x3c], ebx
test eax, eax
je 0x5dfe0d
mov dword [esp + 0x90], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
movzx ecx, byte [esp + 0xa0]
mov byte [esp + 4], cl
call sym.crypto_tls._Conn_.maxPayloadSizeForWrite
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jg 0x5dfbf5
mov eax, ecx
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
cmp ebx, 5
jge 0x5dfc39
lea eax, [0x6954a0]
mov dword [esp], eax
mov dword [esp + 4], 5
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
call sym.runtime.makeslicecopy
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov ebx, 5
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], 5
mov dword [esp + 0x58], ebx
movzx ebx, byte [esp + 0xa0]
mov byte [ebp], bl
mov ebp, dword [esp + 0x9c]
movzx esi, word [ebp + 0x28]
test si, si
jne 0x5dfc6b
mov esi, 0x301
jmp 0x5dfc77
cmp si, 0x304
jne 0x5dfc77
mov esi, 0x303
mov edi, dword [esp + 0x54]
cmp edi, 1
jbe 0x5dfff7
mov edi, dword [esp + 0x50]
mov edx, esi
shr si, 8
xchg esi, eax
mov byte [edi + 1], al
xchg esi, eax
mov esi, dword [esp + 0x54]
cmp esi, 2
jbe 0x5dffeb
mov esi, dword [esp + 0x50]
mov byte [esi + 2], dl
mov esi, dword [esp + 0x54]
cmp esi, 3
jbe 0x5dffdf
mov esi, dword [esp + 0x50]
mov edi, eax
sar eax, 8
mov byte [esi + 3], al
mov esi, dword [esp + 0x54]
cmp esi, 4
jbe 0x5dffd3
mov eax, dword [esp + 0x50]
xchg edi, ebx
mov byte [eax + 4], bl
xchg edi, ebx
mov edx, dword [esp + 0x48]
cmp edi, edx
ja 0x5dffcc
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax]
test esi, esi
je 0x5dfcf2
mov eax, dword [eax + 4]
jmp 0x5dfcfe
mov esi, dword [0x8cf5c0]
mov eax, dword [0x8cf5c4]
mov dword [esp + 0x4c], eax
lea ecx, [ebp + 0x130]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
call sym.crypto_tls._halfConn_.encrypt
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
test eax, eax
jne 0x5dfddd
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call sym.crypto_tls._Conn_.write
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5dfda9
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add ebx, eax
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jbe 0x5dfb8d
jmp 0x5dffc7
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov byte [esp + 0x3b], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
call eax
add esp, 0x98
ret
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ebp
mov byte [esp + 0x3b], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
call eax
add esp, 0x98
ret
movzx eax, byte [esp + 0xa0]
cmp al, 0x14
jne 0x5dff77
mov eax, dword [esp + 0x9c]
cmp word [eax + 0x28], 0x304
je 0x5dff77
mov ecx, dword [eax + 0x16c]
test ecx, ecx
je 0x5dff0d
cmp word [eax + 0x140], 0x304
je 0x5dff0d
mov edx, dword [eax + 0x170]
mov dword [eax + 0x144], ecx
mov ecx, dword [0x8ef900]
test ecx, ecx
je 0x5dfe74
call sym.runtime.gcWriteBarrier2
mov dword [edi], edx
mov ecx, dword [eax + 0x148]
mov dword [edi + 4], ecx
mov dword [eax + 0x148], edx
mov ecx, dword [eax + 0x174]
mov edx, dword [eax + 0x178]
mov dword [eax + 0x14c], ecx
mov ecx, dword [0x8ef900]
test ecx, ecx
je 0x5dfeb8
call sym.runtime.gcWriteBarrier4
mov dword [edi], edx
mov ecx, dword [eax + 0x150]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 0x170]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x178]
mov dword [edi + 0xc], ecx
mov dword [eax + 0x150], edx
mov dword [eax + 0x16c], 0
mov dword [eax + 0x170], 0
mov dword [eax + 0x174], 0
mov dword [eax + 0x178], 0
lea ecx, [eax + 0x154]
mov dword [esp], ecx
mov dword [esp + 4], 8
call sym.runtime.memclrNoHeapPointers
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0x3c]
xor edx, edx
xor ecx, ecx
jmp 0x5dff22
mov ecx, 0x50
lea ebp, [0x8a9240]
lea ecx, [ebp + ecx*8]
lea edx, [0x742840]
test edx, edx
je 0x5dff77
lea ebp, [0x742840]
cmp edx, ebp
jne 0x5dffab
movzx ecx, byte [ecx]
mov dword [esp], eax
mov byte [esp + 4], cl
call sym.crypto_tls._Conn_.sendAlertLocked
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov byte [esp + 0x3b], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
call eax
add esp, 0x98
ret
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov byte [esp + 0x3b], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
call eax
add esp, 0x98
ret
mov eax, dword [0x742844]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [0x69ee00]
mov dword [esp + 8], eax
call sym.runtime.panicdottypeI
call sym.runtime.panicSliceB
mov ecx, edi
call sym.runtime.panicSliceAcap
mov eax, 4
mov ecx, esi
call sym.runtime.panicIndex
mov eax, 3
mov ecx, esi
call sym.runtime.panicIndex
mov eax, 2
mov ecx, esi
call sym.runtime.panicIndex
mov eax, 1
mov ecx, edi
call sym.runtime.panicIndex
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x6968c0]
mov dword [esp + 8], eax
call sym.runtime.panicdottypeE
mov ecx, ebx
call sym.runtime.panicIndex
nop
call sym.runtime.deferreturn
add esp, 0x98
ret
call sym.runtime.morestack_noctxt
jmp sym.crypto_tls._Conn_.writeRecordLocked