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

Disassembly:
mov ecx, dword [0x8e25d4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5da221
sub esp, 0x64
mov eax, 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x68]
test byte [eax], al
lea ecx, [eax + 0x1e8]
mov dword [esp + 0x48], ecx
mov dword [esp], ecx
call sym.sync_atomic.LoadInt32
mov eax, dword [esp + 4]
test eax, 1
jne 0x5da1f5
add eax, 2
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym.sync_atomic.CompareAndSwapInt32
movzx eax, byte [esp + 0xc]
test al, al
je 0x5d9cc4
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [sym.crypto_tls._Conn_.Write.func1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x68]
lea ecx, [eax + 0x1e8]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], ecx
mov byte [esp + 0x23], 1
nop
mov dword [esp], eax
lea ecx, [0x73a5b4]
mov dword [esp + 4], ecx
lea ecx, [0x8e2480]
mov dword [esp + 8], ecx
call sym.crypto_tls._Conn_.handshakeContext
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5da1c9
mov eax, dword [esp + 0x68]
lea ecx, [eax + 0x128]
mov dword [esp + 0x44], ecx
mov dword [esp], ecx
call sym.sync._Mutex_.Lock
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [sym.crypto_tls._Conn_.Write.func2]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x23], 3
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x130]
test ecx, ecx
jne 0x5da192
lea ecx, [eax + 0x14]
mov dword [esp], ecx
call sym.sync_atomic.LoadUint32
mov eax, dword [esp + 4]
test eax, eax
je 0x5da14d
mov eax, dword [esp + 0x68]
movzx ecx, byte [eax + 0xa8]
test cl, cl
jne 0x5da110
mov ecx, dword [esp + 0x70]
cmp ecx, 1
jle 0x5d9fb8
cmp word [eax + 0x28], 0x301
je 0x5d9e0c
mov eax, dword [esp + 0x74]
mov edx, ecx
mov ecx, dword [esp + 0x6c]
xor ebx, ebx
jmp 0x5d9fc4
mov ecx, dword [eax + 0x13c]
mov edx, dword [eax + 0x140]
lea ebx, [0x692e20]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.runtime.assertE2I2
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5d9e49
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
xor ebx, ebx
jmp 0x5d9fc4
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov byte [esp + 4], 0x17
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x74]
mov dword [esp + 0x10], edx
call sym.crypto_tls._Conn_.writeRecordLocked
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x5d9e97
mov eax, dword [esp + 0x74]
dec eax
mov ecx, dword [esp + 0x6c]
inc ecx
mov edx, dword [esp + 0x70]
dec edx
mov ebx, 1
jmp 0x5d9fc4
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
lea edx, [0x698e00]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call sym.runtime.assertI2I2
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5d9f03
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x68]
mov dword [ecx + 0x130], eax
mov eax, dword [0x8e2900]
test eax, eax
jne 0x5d9ee7
mov eax, dword [esp + 0x34]
jmp 0x5d9efb
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov ebx, dword [ecx + 0x134]
mov dword [edi + 4], ebx
mov dword [ecx + 0x134], eax
jmp 0x5d9f7b
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
lea edx, [0x6918a0]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [0x8e2900]
test ecx, ecx
jne 0x5d9f3b
mov ecx, dword [esp + 0x3c]
jmp 0x5d9f46
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
mov dword [eax + 4], ecx
lea ecx, [0x739890]
mov ebx, dword [esp + 0x68]
mov dword [ebx + 0x130], ecx
mov ecx, dword [0x8e2900]
test ecx, ecx
je 0x5d9f73
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [ebx + 0x134]
mov dword [edi + 4], ecx
mov dword [ebx + 0x134], eax
mov ecx, ebx
mov eax, dword [ecx + 0x130]
mov ecx, dword [ecx + 0x134]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov byte [esp + 0x23], 1
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
call eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
call eax
add esp, 0x64
ret
mov eax, dword [esp + 0x74]
mov edx, ecx
mov ecx, dword [esp + 0x6c]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp], ebp
mov byte [esp + 4], 0x17
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call sym.crypto_tls._Conn_.writeRecordLocked
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
lea ebx, [0x698e00]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call sym.runtime.assertI2I2
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5da055
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x68]
mov dword [ecx + 0x130], eax
mov eax, dword [0x8e2900]
test eax, eax
jne 0x5da039
mov eax, dword [esp + 0x30]
jmp 0x5da04d
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x30]
mov dword [edi], eax
mov ebx, dword [ecx + 0x134]
mov dword [edi + 4], ebx
mov dword [ecx + 0x134], eax
jmp 0x5da0cd
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
lea edx, [0x6918a0]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [0x8e2900]
test ecx, ecx
jne 0x5da08d
mov ecx, dword [esp + 0x38]
jmp 0x5da098
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x38]
mov dword [edi], ecx
mov dword [eax + 4], ecx
lea ecx, [0x739890]
mov ebx, dword [esp + 0x68]
mov dword [ebx + 0x130], ecx
mov ecx, dword [0x8e2900]
test ecx, ecx
je 0x5da0c5
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [ebx + 0x134]
mov dword [edi + 4], ecx
mov dword [ebx + 0x134], eax
mov ecx, ebx
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
add eax, ebx
mov ebx, dword [ecx + 0x130]
mov ecx, dword [ecx + 0x134]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ecx
mov byte [esp + 0x23], 1
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
call eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
call eax
add esp, 0x64
ret
mov eax, dword [0x8b2da0]
mov ecx, dword [0x8b2da4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov byte [esp + 0x23], 1
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
call eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
call eax
add esp, 0x64
ret
mov dword [esp + 0x78], 0
lea eax, [0x739868]
mov dword [esp + 0x7c], eax
mov eax, 0x50
lea ecx, [0x893880]
lea eax, [ecx + eax*8]
mov dword [esp + 0x80], eax
mov byte [esp + 0x23], 1
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
call eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
call eax
add esp, 0x64
ret
mov eax, dword [eax + 0x134]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov byte [esp + 0x23], 1
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
call eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
call eax
add esp, 0x64
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
call eax
add esp, 0x64
ret
mov dword [esp + 0x78], 0
mov eax, dword [0x8b2e20]
mov ecx, dword [0x8b2e24]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x64
ret
call sym.runtime.morestack_noctxt
jmp sym.crypto_tls._Conn_.Write