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

Disassembly:
mov ecx, dword [0x7a1414]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d1176
sub esp, 0x6c
mov eax, 0
mov dword [esp + 0x68], eax
mov byte [esp + 0x1f], 0
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call sym.os.OpenFile
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x4d0e28
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [sym.cmd_internal_obj._writer_.writeFile.deferwrap1]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x68], ecx
mov byte [esp + 0x1f], 1
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x4d0e0a
lea eax, [0x5c9200]
mov dword [esp], eax
mov dword [esp + 4], 0x400
mov dword [esp + 8], 0x400
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x70]
mov dword [ecx + 8], 0x400
mov dword [ecx + 0xc], 0x400
mov edx, dword [0x7a14d8]
test edx, edx
je 0x4d0e03
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov edx, dword [ecx + 4]
mov dword [edi + 4], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x38], edx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x58], ebx
mov ebp, dword [ecx + 8]
mov dword [esp + 0x34], ebp
xor esi, esi
xor edi, edi
jmp 0x4d0ebe
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ecx
lea eax, [0x5c6b80]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4d0e49
mov eax, dword [eax + 4]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov eax, dword [0x7a14d8]
test eax, eax
jne 0x4d0e5f
mov eax, dword [esp + 0x48]
jmp 0x4d0e6a
call sym.runtime.gcWriteBarrier1
mov eax, dword [esp + 0x48]
mov dword [edi], eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
inc dword [eax + 0x90]
mov edx, dword [eax + 0x80]
mov eax, dword [edx]
lea ebx, [0x5e5495]
mov dword [esp], ebx
mov dword [esp + 4], 2
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call eax
add esp, 0x6c
ret
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x34]
mov esi, eax
mov edi, ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call sym.os._File_.Read
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
cmp ecx, edx
ja 0x4d1167
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x70]
mov ebp, dword [ebx]
mov dword [esp + 0x50], ebp
mov esi, ecx
sar ecx, 0x1f
mov dword [esp + 0x44], ecx
mov edi, dword [ebp]
mov edi, dword [edi + 4]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x54], ebx
mov dword [esp], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
call sym.bufio._Writer_.Write
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
add dword [ecx + 8], eax
mov ecx, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
adc eax, edx
mov edx, dword [esp + 0x30]
cmp dword [0x732660], edx
jne 0x4d0f91
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [0x732664]
mov dword [esp], edx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4d1020
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4d0eaa
lea eax, [0x5c6b80]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4d0fb2
mov eax, dword [eax + 4]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov eax, dword [0x7a14d8]
test eax, eax
jne 0x4d0fc8
mov eax, dword [esp + 0x54]
jmp 0x4d0fd3
call sym.runtime.gcWriteBarrier1
mov eax, dword [esp + 0x54]
mov dword [edi], eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
inc dword [eax + 0x90]
mov edx, dword [eax + 0x80]
mov eax, dword [edx]
lea ebx, [0x5e5495]
mov dword [esp], ebx
mov dword [esp + 4], 2
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call eax
mov byte [esp + 0x1f], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x78]
cmp dword [ecx + 0xc], eax
setne bl
mov ebp, dword [esp + 0x40]
cmp dword [ecx + 8], ebp
xchg esi, ebx
setne bl
xchg esi, ebx
or ebx, esi
test bl, bl
je 0x4d1156
lea eax, [0x5c6c00]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp], edx
mov dword [esp + 4], ebx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5c9180]
mov edx, dword [esp + 0x5c]
mov dword [edx], ecx
mov ecx, dword [0x7a14d8]
test ecx, ecx
je 0x4d1098
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov dword [edx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call sym.runtime.convT64
mov eax, dword [esp + 8]
lea ecx, [0x5c9340]
mov edx, dword [esp + 0x5c]
mov dword [edx + 8], ecx
mov ebx, dword [0x7a14d8]
test ebx, ebx
je 0x4d10d7
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ebx, dword [edx + 0xc]
mov dword [edi + 4], ebx
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime.convT64
mov eax, dword [esp + 8]
lea ecx, [0x5c9340]
mov edx, dword [esp + 0x5c]
mov dword [edx + 0x10], ecx
mov ecx, dword [0x7a14d8]
test ecx, ecx
je 0x4d1118
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [edx + 0x14]
mov dword [edi + 4], ecx
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x74]
inc dword [eax + 0x90]
mov eax, dword [eax + 0x80]
mov ecx, dword [eax]
lea ebx, [0x5f9921]
mov dword [esp], ebx
mov dword [esp + 4], 0x23
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
mov edx, eax
call ecx
mov byte [esp + 0x1f], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
call sym.runtime.panicSliceAcap
nop
call sym.runtime.deferreturn
add esp, 0x6c
ret
call sym.runtime.morestack_noctxt
jmp sym.cmd_internal_obj._writer_.writeFile