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

Disassembly:
mov ecx, dword [0x6e9808]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x5421fa
sub esp, 0x84
mov eax, 0
mov dword [esp + 0x80], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov byte [esp + 0x26], 0
lea eax, [sym.net_http._transferWriter_.writeBody.func1]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x26]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x80], ecx
mov byte [esp + 0x27], 1
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x541b50
xor ebx, ebx
xor edx, edx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
jmp 0x541f45
mov dword [esp], eax
call sym.net_http._transferWriter_.unwrapBody
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x50], ebx
test ecx, ecx
je 0x541d14
mov ecx, dword [eax + 0x28]
cmp dword [ecx + 4], 7
jne 0x541d14
mov ecx, dword [ecx]
cmp dword [ecx], 0x6e756863
jne 0x541d14
cmp word [ecx + 4], 0x656b
jne 0x541d14
cmp byte [ecx + 6], 0x64
jne 0x541d14
mov ecx, dword [esp + 0x8c]
lea ebp, [0x5ca70c]
cmp ecx, ebp
jne 0x541bc5
mov ebp, dword [esp + 0x90]
jmp 0x541bca
mov ebp, 0
jne 0x541c1c
movzx esi, byte [eax + 0x3c]
xchg esi, eax
test al, al
xchg esi, eax
je 0x541bdf
mov ebp, dword [esp + 0x90]
jmp 0x541c23
mov dword [esp + 0x4c], ebp
lea eax, [0x580440]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [0x6e9960]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x541c05
mov eax, dword [esp + 0x4c]
jmp 0x541c10
call sym.runtime.gcWriteBarrier1
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [ecx], eax
mov ebp, ecx
lea ecx, [0x5ca970]
jmp 0x541c23
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], ebp
lea eax, [0x568c60]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov edx, dword [0x6e9960]
test edx, edx
jne 0x541c53
mov edx, dword [esp + 0x48]
jmp 0x541c5e
call sym.runtime.gcWriteBarrier1
mov edx, dword [esp + 0x48]
mov dword [edi], edx
mov dword [esp + 0x7c], eax
mov dword [eax + 4], edx
mov ecx, dword [0x5cacd8]
lea ebx, [0x6c51a0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sym.runtime.typeAssert
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
call sym.net_http._transferWriter_.doBodyCopy
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
test eax, eax
jne 0x541d03
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x58ab13]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
call sym.io.WriteString
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
xor ebx, ebx
xor edx, edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
jmp 0x541f36
mov ecx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x20]
cmp ecx, 0xffffffff
xchg esi, ebx
sete bl
xchg esi, ebx
cmp ebp, 0xffffffff
xchg edi, ebx
sete bl
xchg edi, ebx
and edi, esi
xchg edi, eax
test al, al
xchg edi, eax
je 0x541e1e
cmp dword [eax + 4], 7
jne 0x541dd5
mov ecx, dword [eax]
cmp dword [ecx], 0x4e4e4f43
jne 0x541dc5
cmp word [ecx + 4], 0x4345
jne 0x541db5
cmp byte [ecx + 6], 0x54
je 0x541d6c
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
jmp 0x541de3
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x78], ecx
lea edx, [0x56e420]
mov dword [esp], edx
lea edx, [esp + 0x74]
mov dword [esp + 4], edx
call sym.runtime.convT
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x50]
lea ecx, [0x5ca980]
mov ebp, eax
mov eax, dword [esp + 0x88]
jmp 0x541de3
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
jmp 0x541de3
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
jmp 0x541de3
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call sym.net_http._transferWriter_.doBodyCopy
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
jmp 0x541f28
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebp
lea eax, [0x56c580]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov edx, dword [0x6e9960]
test edx, edx
jne 0x541e4e
mov edx, dword [esp + 0x50]
jmp 0x541e59
call sym.runtime.gcWriteBarrier1
mov edx, dword [esp + 0x50]
mov dword [edi], edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x90]
mov dword [esp + 8], ebp
lea esi, [0x5ca7f0]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
call sym.net_http._transferWriter_.doBodyCopy
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
test eax, eax
jne 0x5421d7
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
mov eax, dword [0x6c4bb0]
mov ecx, dword [0x6c4bb4]
mov edx, dword [esp + 0x88]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
call sym.net_http._transferWriter_.doBodyCopy
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0x34]
adc ebx, eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
test ebp, ebp
jne 0x5421c0
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x88]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x541f99
mov byte [esp + 0x26], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
test eax, eax
jne 0x542197
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x88]
movzx esi, byte [ebp + 0x18]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x5420ad
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
cmp esi, 0xffffffff
setne cl
cmp edi, 0xffffffff
setne al
or ecx, eax
test cl, cl
je 0x5420a5
cmp edx, esi
setne al
cmp ebx, edi
setne cl
or ecx, eax
test cl, cl
jne 0x541fe0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
jmp 0x5420ad
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.runtime.convT64
mov eax, dword [esp + 8]
lea ecx, [0x561a00]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call sym.runtime.convT64
mov eax, dword [esp + 8]
lea ecx, [0x561a00]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [0x5959c2]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call sym.fmt.Errorf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov ebx, dword [ebp + 0x2c]
test ebx, ebx
je 0x542180
mov ebx, dword [ebp + 0x28]
cmp dword [ebx + 4], 7
jne 0x542180
mov ebx, dword [ebx]
cmp dword [ebx], 0x6e756863
jne 0x542180
cmp word [ebx + 4], 0x656b
jne 0x542180
cmp byte [ebx + 6], 0x64
jne 0x542180
mov edx, dword [ebp + 0x38]
test edx, edx
je 0x542121
nop
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call sym.net_http.Header.writeSubset
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x542157
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x58aa75]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
call sym.io.WriteString
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
jmp 0x542180
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
call sym.runtime.morestack_noctxt
jmp sym.net_http._transferWriter_.writeBody