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

Disassembly:
mov ecx, dword [0x8d0454]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x51ebbd
sub esp, 0xb4
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x51e6d5
mov byte [ecx + 4], 1
mov edx, dword [ecx + 8]
test edx, edx
je 0x51e6d5
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
add esp, 0xb4
ret
lea eax, [0x698320]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 4]
mov dword [esp + 0x68], edx
test ecx, ecx
je 0x51e76f
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x681d20]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [0x726ac4]
mov dword [esp], eax
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
lea ebx, [0x6befcb]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 8
lea ebx, [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call sym.fmt.Fprintf
jmp 0x51e7e3
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x681d20]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [0x726ac4]
mov dword [esp], eax
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
lea ebx, [0x6bea5a]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 6
lea ebx, [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call sym.fmt.Fprintf
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x51e7f2
mov ecx, dword [eax]
jmp 0x51e7f4
xor ecx, ecx
mov dword [esp + 0x34], ecx
lea eax, [0x681d20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
lea edi, [esp + 0x84]
xor eax, eax
call fcn.00468474
lea eax, [0x6a86e0]
mov dword [esp], eax
mov ecx, dword [esp + 0xbc]
mov dword [esp + 4], ecx
lea edx, [esp + 0x84]
mov dword [esp + 8], edx
call sym.runtime.mapiterinit
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
xor edx, edx
jmp 0x51e875
mov dword [esi], ebp
lea eax, [esp + 0x84]
mov dword [esp], eax
call sym.runtime.mapiternext
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x84]
test ebx, ebx
je 0x51e8fd
inc edx
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
cmp eax, edx
jae 0x51e8c8
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x58], ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x681d20]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
lea esi, [ecx + edx*8 - 4]
mov dword [esi], ebx
mov ebx, dword [0x8d0720]
lea esi, [ecx + edx*8 - 8]
test ebx, ebx
je 0x51e858
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebp
mov ebx, dword [esi]
mov dword [edi + 4], ebx
jmp 0x51e858
mov dword [esp + 0x30], edx
mov dword [esp + 0x60], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym.runtime.convTslice
mov eax, dword [esp + 0xc]
lea ecx, [0x727e28]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.sort.Sort
xor eax, eax
jmp 0x51e936
mov ecx, dword [esp + 0x48]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x51e98f
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x60]
lea edx, [ecx + eax*8]
mov ebx, dword [edx]
mov dword [esp + 0x54], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x38], edx
lea ebp, [0x6a86e0]
mov dword [esp], ebp
mov esi, dword [esp + 0xbc]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call sym.runtime.mapaccess1_faststr
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
xor edx, edx
jmp 0x51ebb0
lea eax, [0x726ac4]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
lea ecx, [0x6be44b]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call sym.fmt.Fprintf
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [0x726aec]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call sym.io.copyBuffer
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x51eaa8
lea eax, [0x698620]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 8], 0
mov ecx, dword [0x8d0720]
test ecx, ecx
jne 0x51ea49
mov ecx, dword [esp + 0xb8]
jmp 0x51ea6b
mov ecx, dword [eax + 0xc]
call sym.runtime.gcWriteBarrier5
mov dword [edi], ecx
mov ecx, dword [esp + 0xb8]
mov dword [edi + 4], ecx
mov edx, dword [eax]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov edx, dword [ecx + 0x10]
mov dword [edi + 0x10], edx
mov dword [eax + 0xc], 0
mov dword [eax], ecx
mov dword [ecx + 0x10], eax
lea ecx, [0x726c2c]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
add esp, 0xb4
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0xb4
ret
mov dword [esp + 0x40], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov dword [esp + 0x4c], ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov ebp, dword [esp + 0x54]
mov dword [esp], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 4], esi
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x681d20]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x681d20]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
lea eax, [0x726ac4]
mov dword [esp], eax
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
lea ebx, [0x6befd3]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 8
lea ebp, [esp + 0x74]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 2
call sym.fmt.Fprintf
mov eax, dword [esp + 0x40]
lea edx, [eax + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
cmp edx, eax
jl 0x51eadb
jmp 0x51e92f
call sym.runtime.morestack_noctxt
jmp sym.mime_multipart._Writer_.CreatePart