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

Disassembly:
mov ecx, dword [0x8d0454]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x50]
cmp eax, dword [ecx + 8]
jbe 0x5d10b9
sub esp, 0xd0
mov ecx, dword [esp + 0xdc]
test ecx, ecx
jbe 0x5d10af
cmp ecx, 5
jb 0x5d10a5
mov eax, dword [esp + 0xe0]
lea edx, [eax - 5]
mov dword [esp + 0x58], edx
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 5
mov ebp, dword [esp + 0xd8]
movzx esi, byte [ebp]
xchg esi, eax
mov byte [esp + 0x53], al
xchg esi, eax
add edx, ebp
mov dword [esp + 0xb4], edx
lea edi, [ecx - 5]
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0xd4]
cmp word [ecx + 0x10], 0x304
jne 0x5d05ff
xchg esi, eax
cmp al, 0x14
xchg esi, eax
jne 0x5d05ff
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], edi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xf0], 0x14
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
add esp, 0xd0
ret
mov dword [esp], ecx
call sym.crypto_tls._halfConn_.explicitNonceLen
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 4]
test ecx, ecx
jne 0x5d0651
mov edx, eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0xb8], ebx
xor ebx, ebx
mov ebp, 0xffffffff
movzx esi, byte [esp + 0x53]
xchg esi, eax
mov byte [esp + 0x51], al
xchg esi, eax
mov esi, ecx
mov edi, dword [esp + 0xb4]
jmp 0x5d0cf6
je 0x5d108d
mov dword [esp + 0x74], edx
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0xcc], edx
lea ebx, [0x68b680]
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
je 0x5d06e6
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xb4]
xor ebx, ebx
mov ebp, 0xffffffff
xor esi, esi
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x54]
jmp 0x5d0b57
lea eax, [0x69d080]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xcc]
mov dword [esp + 8], ecx
call sym.runtime.assertE2I2
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5d092f
lea eax, [0x694720]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 8], eax
call sym.runtime.assertE2I2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5d108d
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc0], ecx
mov edx, dword [eax + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0xd4]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov edx, dword [edx + 0x18]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 0x80]
test eax, eax
je 0x5d1088
mov ebx, dword [esp + 4]
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, dword [esp + 0x54]
cdq
idiv ecx
mov eax, ebp
mov ebp, edx
cmp ecx, 0xffffffff
je 0x5d07aa
cdq
idiv ecx
jmp 0x5d07ac
xor edx, edx
mov eax, ecx
sub eax, edx
cmp ecx, 0xffffffff
je 0x5d07ba
cdq
idiv ecx
jmp 0x5d07bc
xor edx, edx
add ebx, edx
mov ecx, dword [esp + 0x74]
lea ebx, [ebx + ecx + 1]
test ebp, ebp
jne 0x5d08dd
mov eax, dword [esp + 0x54]
cmp ebx, eax
jg 0x5d08dd
test ecx, ecx
jle 0x5d084c
mov edx, dword [esp + 0x58]
cmp ecx, edx
ja 0x5d1083
mov eax, dword [esp + 0x78]
mov ebx, dword [eax + 0x18]
mov ebp, dword [esp + 0xc0]
mov dword [esp], ebp
mov esi, dword [esp + 0xb4]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call ebx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
ja 0x5d107e
mov ecx, dword [esp + 0xe0]
sub ecx, eax
mov ebp, dword [esp + 0xdc]
sub ebp, eax
lea edx, [ecx - 5]
mov ecx, edx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0xb4]
add eax, ecx
lea edi, [ebp - 5]
jmp 0x5d0859
mov edx, dword [esp + 0x58]
mov edi, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xb8], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [esp + 0xc0]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
call ecx
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call sym.crypto_tls.extractPadding
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edx, dword [esp + 0xb8]
mov ebx, eax
mov ebp, ecx
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
jmp 0x5d0b57
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0xf0], 0
lea eax, [0x7271a4]
mov dword [esp + 0xf4], eax
mov eax, 0x14
lea ecx, [0x882b40]
lea eax, [ecx + eax*8]
mov dword [esp + 0xf8], eax
add esp, 0xd0
ret
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x54]
cmp ecx, ebx
jg 0x5d0ca4
mov edx, dword [esp + 0x58]
cmp ecx, edx
ja 0x5d1079
test ecx, ecx
jne 0x5d0965
mov ebx, dword [esp + 0xd4]
lea edx, [ebx + 0x24]
mov ebp, 8
mov esi, 8
jmp 0x5d0977
mov ebx, dword [esp + 0xd4]
mov ebp, edx
mov esi, ecx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x6c], ebp
mov edi, dword [esp + 0xe0]
sub edi, ecx
add edi, 0xfffffffb
mov dword [esp + 0x60], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, ecx
mov ebp, dword [esp + 0xb4]
add ebp, edi
mov dword [esp + 0xb8], ebp
mov edi, dword [esp + 0xdc]
sub edi, ecx
mov ecx, dword [esp + 0x10]
cmp word [ebx + 0x10], 0x304
jne 0x5d0a04
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x88], eax
mov dword [esp + 0xa0], ecx
mov ecx, 5
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0xc8], ecx
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
jmp 0x5d0ac1
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0xbc], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x90], edi
mov edx, dword [ebx + 0x24]
mov ebp, dword [ebx + 0x28]
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ebp
mov edx, dword [esp + 0xd8]
movzx ebp, word [edx]
movzx esi, byte [edx + 2]
mov word [ebx + 0x34], bp
xchg esi, eax
mov byte [ebx + 0x36], al
xchg esi, eax
mov ebp, dword [eax + 0x18]
mov dword [esp], ecx
call ebp
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x90]
mov edx, ecx
sub ecx, eax
mov eax, dword [esp + 0xd4]
lea ebx, [eax + 0x2c]
add ecx, 0xfffffffb
mov ebp, ecx
sar ecx, 8
mov esi, 0xd
mov byte [esi + ebx - 2], cl
xchg ebp, eax
mov byte [esi + ebx - 1], al
xchg ebp, eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xc4]
mov ebp, dword [esp + 0xb8]
mov esi, dword [esp + 0x68]
mov edi, edx
mov edx, 0xd
mov dword [esp + 0x88], edx
mov ecx, 0xd
mov dword [esp + 0x84], ecx
mov dword [esp + 0xc8], ebx
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc4]
lea ebx, [edi - 5]
mov dword [esp + 0x5c], ebx
mov eax, dword [eax + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x30], edx
call eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x5d0c52
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0xb8]
mov edi, ebx
mov dword [esp + 0x58], esi
xor ebx, ebx
mov esi, ebp
mov ebp, 0xffffffff
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0xd4]
cmp word [edx + 0x10], 0x304
jne 0x5d0c36
movzx edx, byte [esp + 0x53]
cmp dl, 0x17
jne 0x5d0be4
cmp esi, 0x4001
jg 0x5d0b92
mov dword [esp + 0x8c], eax
lea edx, [esi - 1]
jmp 0x5d0fe4
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0xf0], 0
lea eax, [0x7271a4]
mov dword [esp + 0xf4], eax
mov eax, 0x16
lea ecx, [0x882b40]
lea eax, [ecx + eax*8]
mov dword [esp + 0xf8], eax
add esp, 0xd0
ret
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0xf0], 0
lea eax, [0x7271a4]
mov dword [esp + 0xf4], eax
mov eax, 0xa
lea ecx, [0x882b40]
lea eax, [ecx + eax*8]
mov dword [esp + 0xf8], eax
add esp, 0xd0
ret
mov dword [esp + 0x98], eax
movzx eax, byte [esp + 0x53]
mov byte [esp + 0x51], al
mov eax, dword [esp + 0x98]
jmp 0x5d0cf6
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0xf0], 0
lea eax, [0x7271a4]
mov dword [esp + 0xf4], eax
mov eax, 0x14
lea ecx, [0x882b40]
lea eax, [ecx + eax*8]
mov dword [esp + 0xf8], eax
add esp, 0xd0
ret
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0xf0], 0
lea eax, [0x7271a4]
mov dword [esp + 0xf4], eax
mov eax, 0x14
lea ecx, [0x882b40]
lea eax, [ecx + eax*8]
mov dword [esp + 0xf8], eax
add esp, 0xd0
ret
xchg ebp, eax
mov byte [esp + 0x52], al
xchg ebp, eax
mov ebp, dword [edx + 0x1c]
test ebp, ebp
jne 0x5d0d0c
mov eax, dword [esp + 0x58]
jmp 0x5d0eed
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], ebx
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jl 0x5d0e58
mov ebx, ecx
sub ebx, eax
mov ebp, dword [esp + 0x64]
sub ebx, ebp
mov ebp, ebx
shr ebx, 0x1f
dec ebx
and ebx, ebp
mov ebp, ebx
sar ebx, 8
lea esi, [ebp + eax]
mov edi, dword [esp + 0xd8]
mov byte [edi + 3], bl
xchg ebp, eax
mov byte [edi + 4], al
xchg ebp, eax
mov edx, dword [esp + 0x60]
cmp edx, esi
jb 0x5d0fd5
cmp ebp, esi
ja 0x5d0fcc
sub edx, ebp
neg edx
sar edx, 0x1f
and edx, ebp
mov ebx, dword [esp + 0xb8]
add edx, ebx
cmp ecx, esi
jb 0x5d0fc5
mov dword [esp + 0x70], eax
mov dword [esp + 0x90], ebp
mov dword [esp + 0xb0], edx
mov eax, dword [esp + 0xd4]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [eax + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xd
lea ecx, [eax + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 5
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x34], ecx
sub ecx, esi
mov dword [esp + 0x8c], ecx
mov edi, dword [esp + 0x5c]
sub edi, esi
neg ecx
sar ecx, 0x1f
and esi, ecx
lea ecx, [ebx + esi]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x40], ecx
call sym.crypto_tls.tls10MAC
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
je 0x5d0e47
xor edx, edx
jmp 0x5d0ec5
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0xb0]
xor ecx, ecx
xor ebp, ebp
jmp 0x5d0eb7
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0xf0], 0
lea eax, [0x7271a4]
mov dword [esp + 0xf4], eax
mov eax, 0x14
lea ecx, [0x882b40]
lea eax, [ecx + eax*8]
mov dword [esp + 0xf8], eax
add esp, 0xd0
ret
movzx esi, byte [ecx + edx]
movzx edi, byte [ecx + ebx]
xor esi, edi
inc ecx
or ebp, esi
cmp ecx, eax
jl 0x5d0eaa
xchg ebp, eax
movzx edx, al
xchg ebp, eax
dec edx
nop
shr edx, 0x1f
movzx ebx, byte [esp + 0x52]
movzx ebx, bl
and ebx, edx
cmp ebx, 1
jne 0x5d0ef4
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0xb8]
mov ecx, 7
jmp 0x5d0f47
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0xf0], 0
lea eax, [0x7271a4]
mov dword [esp + 0xf4], eax
mov eax, 0x14
lea ecx, [0x882b40]
lea eax, [ecx + eax*8]
mov dword [esp + 0xf8], eax
add esp, 0xd0
ret
dec ecx
test ecx, ecx
jl 0x5d0fad
cmp ecx, 8
jae 0x5d0fa1
movzx ebx, byte [edx + ecx + 0x24]
lea ebp, [ebx + 1]
xchg ebp, eax
mov byte [edx + ecx + 0x24], al
xchg ebp, eax
cmp bl, 0xff
je 0x5d0f46
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], eax
movzx eax, byte [esp + 0x51]
mov byte [esp + 0xf0], al
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
add esp, 0xd0
ret
mov eax, ecx
mov ecx, 8
call sym.runtime.panicIndex
lea eax, [0x681d20]
mov dword [esp], eax
lea eax, [0x726720]
mov dword [esp + 4], eax
call sym.runtime.gopanic
mov eax, esi
call sym.runtime.panicSliceB
mov eax, ebp
mov ecx, esi
call sym.runtime.panicSliceB
mov ecx, esi
call sym.runtime.panicSliceAcap
dec edx
mov eax, dword [esp + 0x8c]
test edx, edx
jl 0x5d105b
cmp esi, edx
jbe 0x5d1070
movzx eax, byte [edi + edx]
test al, al
jne 0x5d104e
test edx, edx
jne 0x5d0fdc
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov byte [esp + 0xf0], 0
lea eax, [0x7271a4]
mov dword [esp + 0xf4], eax
mov eax, 0xa
lea ecx, [0x882b40]
lea eax, [ecx + eax*8]
mov dword [esp + 0xf8], eax
add esp, 0xd0
ret
mov esi, edx
mov edx, eax
mov eax, dword [esp + 0x8c]
jmp 0x5d1060
mov edx, 0x17
mov byte [esp + 0x51], dl
mov edx, dword [esp + 0xd4]
jmp 0x5d0cf6
mov eax, edx
mov ecx, esi
call sym.runtime.panicIndex
call sym.runtime.panicSliceAcap
call sym.runtime.panicSliceB
call sym.runtime.panicSliceAcap
call sym.runtime.panicdivide
lea eax, [0x681d20]
mov dword [esp], eax
lea eax, [0x726728]
mov dword [esp + 4], eax
call sym.runtime.gopanic
mov eax, 5
call sym.runtime.panicSliceB
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.crypto_tls._halfConn_.decrypt