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

Disassembly:
mov ecx, dword [0x9364f0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xb0]
cmp eax, dword [ecx + 8]
jbe 0x66c44d
sub esp, 0x130
mov eax, 0
mov dword [esp + 0x12c], eax
mov byte [esp + 0x22], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x90], edx
mov ebx, dword [eax + 4]
mov dword [esp + 0x6c], ebx
mov ebp, dword [esp + 0x138]
mov dword [esp], ebp
call sym.net_http.http2checkConnHeaders
mov eax, dword [esp + 4]
test eax, eax
jne 0x66bc95
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x66c428
mov dword [esp + 0x128], ecx
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x124], ecx
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x10]
mov ebp, dword [esp + 0x90]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 4]
mov dword [esp + 0x120], eax
lea edi, [esp + 0xfc]
xor eax, eax
call fcn.0047227a
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xfc], ecx
lea ecx, [esp + 0x23]
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 0x124]
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x104], ecx
lea ecx, [esp + 0xfc]
mov dword [esp], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call sym.runtime.selectgo
mov eax, dword [esp + 0x18]
test eax, eax
je 0x66ba44
cmp eax, 1
jne 0x66ba23
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov eax, dword [0x90f278]
mov ecx, dword [0x90f27c]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov eax, dword [esp + 0x94]
lea ecx, [eax + 0x34]
mov dword [esp + 0x11c], ecx
mov dword [esp], ecx
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x66ba7d
mov edx, dword [eax + 0x30]
mov ecx, dword [ecx + 0x14]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x68]
nop
test ecx, ecx
jle 0x66ba89
dec ecx
mov dword [eax + 0x68], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x134]
mov dword [esp + 4], ecx
call sym.net_http._http2ClientConn_.awaitOpenSlotForStreamLocked
mov eax, dword [esp + 8]
test eax, eax
jne 0x66bc3a
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xb8]
mov edx, dword [esp + 0x134]
mov ebx, dword [edx + 0x94]
lea ebp, [ebx + ecx]
nop
cmp ecx, ebp
setl cl
test ebx, ebx
setg bl
cmp bl, cl
jne 0x66bada
mov dword [edx + 0x94], ebp
mov ecx, dword [0x9367c0]
lea ebx, [eax + 0x40]
test ecx, ecx
je 0x66baf7
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebx
mov ecx, dword [edx + 0x98]
mov dword [edi + 4], ecx
mov dword [edx + 0x98], ebx
nop
mov dword [edx + 0x9c], 0x400000
mov ecx, dword [eax + 0x6c]
mov dword [edx + 0x14], ecx
add dword [eax + 0x6c], 2
mov ecx, dword [eax + 0x64]
mov ebx, dword [edx + 0x14]
lea ebp, [0x6c0a80]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call sym.runtime.mapassign_fast32
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x9367c0]
test ecx, ecx
jne 0x66bb47
mov ecx, dword [esp + 0x134]
jmp 0x66bb5a
call sym.runtime.gcWriteBarrier2
mov ecx, dword [esp + 0x134]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x66c410
mov eax, dword [esp + 0x138]
mov dword [esp], eax
call sym.net_http.http2isConnectionCloseRequest
movzx eax, byte [esp + 4]
test al, al
je 0x66bb8a
mov eax, dword [esp + 0x94]
mov byte [eax + 0x50], 1
mov eax, dword [esp + 0x11c]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov edx, dword [esp + 0x13c]
test edx, edx
je 0x66bbb2
mov eax, dword [edx]
mov ecx, dword [esp + 0x134]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x50]
test ecx, ecx
je 0x66bbd0
mov edx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xac]
jmp 0x66bbd4
xor ecx, ecx
xor edx, edx
test ecx, ecx
setne bl
test edx, edx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or ebx, ebp
test bl, bl
je 0x66bd54
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x138]
mov ecx, dword [eax + 0x1c]
lea edx, [0x6f26a0]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [0x700f9a]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 6
call sym.runtime.mapaccess1_faststr
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
xor edx, edx
jmp 0x66bcbd
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x11c]
mov dword [esp], ecx
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.chanrecv1
mov eax, dword [esp + 0x68]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x144], eax
add esp, 0x130
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov ebx, dword [esp + 0x78]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x7c]
cmp edx, eax
jge 0x66bd4c
mov dword [esp + 0x78], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
lea eax, [0x702a45]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xc
call sym.vendor_golang.org_x_net_http_httpguts.headerValueContainsToken
movzx eax, byte [esp + 0x10]
test al, al
je 0x66bcae
lea eax, [0x6b6c60]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.runtime.makechan
mov eax, dword [0x9367c0]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x66bd25
mov eax, dword [esp + 0x134]
jmp 0x66bd3c
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [esp + 0x134]
mov edx, dword [eax + 0x88]
mov dword [edi + 4], edx
mov dword [eax + 0x88], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
jmp 0x66bd50
xor eax, eax
xor ecx, ecx
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x134]
mov dword [esp], eax
mov ebx, dword [esp + 0x138]
mov dword [esp + 4], ebx
call sym.net_http._http2clientStream_.encodeAndWriteHeaders
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xbc]
mov dword [esp], ecx
mov dword [esp + 4], 0
call sym.runtime.chanrecv1
mov eax, dword [esp + 0x140]
test eax, eax
jne 0x66c1ad
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0xbc]
mov ebx, dword [eax + 0xc0]
test ecx, ecx
setne cl
test ebx, ebx
setne bl
or ebx, ecx
test bl, bl
je 0x66c0bc
mov ecx, dword [esp + 0x74]
test ecx, ecx
setne bl
mov ebp, dword [esp + 0x70]
test ebp, ebp
xchg esi, ebx
setne bl
xchg esi, ebx
or esi, ebx
xchg esi, eax
test al, al
xchg esi, eax
je 0x66c01a
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x66be1b
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x66be1b
mov eax, dword [edx]
call eax
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 4], ecx
call sym.time.NewTimer
mov eax, dword [esp + 8]
mov dword [esp + 0x80], eax
mov ecx, dword [eax]
mov dword [esp + 0x118], ecx
mov edx, dword [esp + 0x134]
mov ebx, dword [edx + 0x88]
mov dword [esp + 0x128], ebx
mov ebp, dword [edx + 0x74]
mov dword [esp + 0x114], ebp
mov esi, dword [esp + 0x6c]
mov edi, dword [esi + 0x10]
mov esi, dword [esp + 0x90]
mov dword [esp], esi
call edi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0xc]
lea edi, [esp + 0xd4]
mov ebx, eax
xor eax, eax
call fcn.00472276
mov ecx, dword [esp + 0x118]
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd4], edx
lea ecx, [esp + 0xd4]
mov dword [esp], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 5
mov byte [esp + 0x14], 1
call sym.runtime.selectgo
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x66bf24
mov eax, dword [0x90f278]
mov ecx, dword [0x90f27c]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x134]
jmp 0x66bfbe
cmp eax, 1
je 0x66bf8e
cmp eax, 2
jne 0x66bf4b
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], edx
jmp 0x66bfbe
cmp eax, 3
jne 0x66bf6f
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
jmp 0x66bfbe
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
jmp 0x66bfbe
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x90]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x80]
movzx edx, byte [ecx + 4]
nop
test dl, dl
je 0x66c3f8
mov dword [esp], ecx
call sym.time.stopTimer
mov eax, dword [esp + 0x140]
test eax, eax
je 0x66c013
mov ecx, dword [esp + 0x134]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x66c00c
mov edx, dword [ecx + 0x3c]
test edx, edx
je 0x66c00c
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov dword [esp], eax
mov ecx, dword [esp + 0x138]
mov dword [esp + 4], ecx
call sym.net_http._http2clientStream_.writeRequestBody
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
test eax, eax
je 0x66c0ac
cmp dword [0x90f280], eax
jne 0x66c077
mov edx, dword [0x90f284]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x66c077
mov eax, dword [esp + 0x134]
jmp 0x66c0c3
mov eax, dword [esp + 0x134]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x66c0a5
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x66c0a5
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov byte [eax + 0xc8], 1
jmp 0x66c0c3
mov byte [eax + 0xc8], 1
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x66c0f1
mov edx, dword [ecx + 0x3c]
test edx, edx
je 0x66c0f1
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x50]
test edx, edx
je 0x66c10f
mov ebx, dword [edx + 0xa0]
mov edx, dword [edx + 0xa4]
jmp 0x66c113
xor edx, edx
xor ebx, ebx
test ebx, ebx
xchg ebp, ebx
setne bl
xchg ebp, ebx
test edx, edx
xchg esi, ebx
setne bl
xchg esi, ebx
or esi, ebp
xchg esi, eax
mov byte [esp + 0x23], al
xchg esi, eax
xchg esi, eax
test al, al
xchg esi, eax
jne 0x66c13c
xor ecx, ecx
xor edx, edx
jmp 0x66c1bf
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call sym.net_http._http2Transport_.newTimer
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [esp + 0x10]
lea edx, [sym.net_http._http2clientStream_.writeRequest.deferwrap1]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
lea edx, [esp + 0xc8]
mov dword [esp + 0x12c], edx
mov byte [esp + 0x22], 1
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0x8c]
movzx esi, byte [esp + 0x23]
mov ecx, eax
mov eax, dword [esp + 0x134]
jmp 0x66c1bf
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ecx
mov ebx, dword [eax + 0x80]
mov dword [esp + 0x128], ebx
mov ebp, dword [eax + 0x74]
mov dword [esp + 0x114], ebp
mov esi, dword [esp + 0x6c]
mov edi, dword [esi + 0x10]
mov esi, dword [esp + 0x90]
mov dword [esp], esi
call edi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0xc]
lea edi, [esp + 0x98]
mov ebx, eax
xor eax, eax
call fcn.00472274
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x98], edx
lea ecx, [esp + 0x98]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 6
mov byte [esp + 0x14], 1
call sym.runtime.selectgo
mov eax, dword [esp + 0x18]
test eax, eax
je 0x66c3bb
cmp eax, 1
je 0x66c36f
cmp eax, 2
je 0x66c331
cmp eax, 3
je 0x66c1b4
cmp eax, 4
jne 0x66c2f8
mov eax, dword [0x90f240]
mov ecx, dword [0x90f244]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x66c2f1
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
movzx eax, byte [esp + 0x23]
test al, 1
je 0x66c32a
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], eax
movzx eax, byte [esp + 0x23]
test al, 1
je 0x66c368
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x66c3b4
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [0x90f278]
mov ecx, dword [0x90f27c]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x66c3f1
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
lea eax, [0x6bd7a0]
mov dword [esp], eax
lea eax, [0x7716d8]
mov dword [esp + 4], eax
call sym.runtime.gopanic
lea eax, [0x6bd7a0]
mov dword [esp], eax
lea eax, [0x771908]
mov dword [esp + 4], eax
call sym.runtime.gopanic
lea eax, [0x6bd7a0]
mov dword [esp], eax
lea eax, [0x771900]
mov dword [esp + 4], eax
call sym.runtime.gopanic
nop
call sym.runtime.deferreturn
add esp, 0x130
ret
call sym.runtime.morestack_noctxt
jmp sym.net_http._http2clientStream_.writeRequest