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

Disassembly:
mov ecx, dword [0x7762b4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x5a9f45
sub esp, 0xb8
mov eax, 0
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0x22], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov byte [esp + 0xec], 0
mov edx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xcc]
xor eax, eax
jmp 0x5a95d3
inc eax
cmp ebx, eax
jle 0x5a9630
lea ebp, [edx + eax*8]
mov esi, dword [ebp + 4]
cmp esi, 3
jne 0x5a95d2
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp], eax
lea eax, [0x5eceb3]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5a961c
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xcc]
jmp 0x5a95d2
mov edx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xcc]
mov eax, dword [esp + 0x2c]
jmp 0x5a9635
mov eax, 0xffffffff
test eax, eax
jl 0x5a9b65
lea ebp, [ebx - 1]
cmp ebx, ebp
jbe 0x5a9f2f
lea esi, [edx + ebx*8 - 8]
cmp dword [esi + 4], 1
jne 0x5a9b41
mov esi, dword [esi]
cmp byte [esi], 0x2d
je 0x5a9684
mov eax, ebx
mov ebp, edx
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc4]
mov esi, dword [esp + 0xc0]
xor edi, edi
jmp 0x5a9b87
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], ebp
mov dword [esp], 0
mov dword [esp + 4], 0
lea eax, [0x5f02cb]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xe
call sym.os.CreateTemp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x5a9724
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
je 0x5a96e1
mov eax, dword [eax + 4]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
lea eax, [0x5ecd90]
mov dword [esp], eax
mov dword [esp + 4], 2
lea ecx, [esp + 0x94]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call sym.main.fatalf
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
nop
nop
mov edx, dword [eax + 0x134]
mov dword [esp + 0x50], edx
mov ebx, dword [eax + 0x138]
mov dword [esp + 0x24], ebx
test ecx, ecx
je 0x5a9750
mov dword [esp], eax
call sym.os._file_.close
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
lea eax, [0x5ecdaa]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xbc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x1b6
call sym.os.WriteFile
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x5a9843
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call sym.os.Remove
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5a9800
mov eax, dword [eax + 4]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x98], eax
lea eax, [0x5ecd90]
mov dword [esp], eax
mov dword [esp + 4], 2
lea eax, [esp + 0x94]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call sym.main.fatalf
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [sym.main.run.deferwrap1]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 0x78]
mov dword [esp + 0xb0], edx
mov byte [esp + 0x22], 1
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
lea edx, [0x5ecdaa]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 2
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea edx, [sym.main.run.deferwrap2]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xb4], eax
mov byte [esp + 0x22], 3
mov ebx, dword [esp + 0xd0]
mov edx, dword [esp + 0x2c]
cmp ebx, edx
jb 0x5a9f2a
lea eax, [edx + 1]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
ja 0x5a9f25
mov ecx, dword [esp + 0xcc]
lea ebp, [ecx - 2]
mov esi, ecx
sub ecx, edx
sub ebx, edx
dec ebx
neg ebx
shl eax, 3
sar ebx, 0x1f
and eax, ebx
mov ebx, dword [esp + 0xc8]
add eax, ebx
lea edi, [ecx - 2]
mov dword [esp + 0x4c], edi
cmp edx, ebp
jae 0x5a9993
mov dword [esp + 0x48], ecx
mov dword [esp + 0xa4], eax
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
lea eax, [0x5c2b80]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0xcc]
mov edi, dword [esp + 0x4c]
mov edx, ecx
mov ebx, eax
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x58], ebx
lea edi, [0x5c2b80]
mov dword [esp], edi
sub esi, ecx
sub ebp, esi
sub edx, esi
neg edx
shl esi, 3
sar edx, 0x1f
and esi, edx
lea edx, [ebx + esi]
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
call sym.runtime.typedslicecopy
mov eax, dword [esp + 0x30]
add eax, 2
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jb 0x5a99eb
mov ebx, dword [esp + 0x58]
mov edx, ecx
jmp 0x5a9a1d
mov edx, dword [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 2
lea eax, [0x5c2b80]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
lea ecx, [ebx + eax*8 - 0xc]
mov dword [ecx], 2
mov ecx, dword [0x776370]
lea ebp, [ebx + eax*8 - 0x10]
lea esi, [ebx + eax*8 - 8]
lea edi, [ebx + eax*8 - 4]
test ecx, ecx
je 0x5a9a66
mov dword [esp + 0xa0], edi
mov ecx, dword [ebp]
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov ecx, dword [esi]
mov dword [edi + 4], ecx
mov edi, dword [esp + 0xa0]
lea eax, [0x5ecdac]
mov dword [ebp], eax
mov dword [edi], 1
lea eax, [0x5ecd22]
mov dword [esi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
lea eax, [0x5ecdaa]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call sym.runtime.concatstring2
mov eax, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
cmp ebx, eax
jb 0x5a9ac6
mov ebp, dword [esp + 0x58]
jmp 0x5a9b12
mov dword [esp + 0x4c], edx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x5c2b80]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x9c]
mov ebp, ebx
mov ebx, edx
mov edx, dword [esp + 0x4c]
lea esi, [ebp + eax*8 - 4]
mov dword [esi], edx
mov edx, dword [0x776370]
lea esi, [ebp + eax*8 - 8]
test edx, edx
je 0x5a9b32
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov edx, dword [esi]
mov dword [edi + 4], edx
mov dword [esi], ecx
xor ecx, ecx
xor edx, edx
xor esi, esi
mov edi, 3
jmp 0x5a9b87
mov eax, ebx
mov ebp, edx
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc4]
mov esi, dword [esp + 0xc0]
xor edi, edi
jmp 0x5a9b87
mov eax, ebx
mov ebp, edx
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xc4]
mov esi, dword [esp + 0xc0]
xor edi, edi
cmp eax, 1
jb 0x5a9f19
mov dword [esp + 0xa4], ebp
xchg edi, eax
mov byte [esp + 0x23], al
xchg edi, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [ebx - 1]
dec eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 8
add ecx, ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call sym.os_exec.Command
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
lea ecx, [0x5d2b00]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [0x776370]
test ecx, ecx
jne 0x5a9c0f
mov ecx, dword [esp + 0x68]
jmp 0x5a9c1a
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x68]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xffffffff
lea ecx, [0x634b68]
mov edx, dword [esp + 0x54]
mov dword [edx + 0x28], ecx
mov ecx, dword [0x776370]
test ecx, ecx
je 0x5a9c55
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [edx + 0x2c]
mov dword [edi + 4], ecx
mov dword [edx + 0x2c], eax
lea eax, [0x5d2a80]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0xa8], eax
lea ecx, [0x5d2a80]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [esp + 4]
lea ecx, [0x634b7c]
mov edx, dword [esp + 0x54]
mov dword [edx + 0x30], ecx
mov ebx, dword [0x776370]
test ebx, ebx
jne 0x5a9ca3
mov ebx, dword [esp + 0xa8]
jmp 0x5a9cc0
call sym.runtime.gcWriteBarrier4
mov ebx, dword [esp + 0xa8]
mov dword [edi], ebx
mov ebp, dword [edx + 0x34]
mov dword [edi + 4], ebp
mov dword [edi + 8], eax
mov ebp, dword [edx + 0x3c]
mov dword [edi + 0xc], ebp
mov dword [esp + 0xac], eax
mov dword [edx + 0x34], ebx
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
call sym.syscall.Environ
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
inc ecx
mov edx, dword [esp]
cmp eax, ecx
jae 0x5a9d0c
mov dword [esp + 4], ecx
mov dword [esp + 0xc], 1
lea eax, [0x5c2b80]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ebx, [edx + ecx*8 - 4]
mov dword [ebx], 9
mov ebx, dword [0x776370]
lea ebp, [edx + ecx*8 - 8]
test ebx, ebx
jne 0x5a9d2a
mov ebx, dword [esp + 0x54]
jmp 0x5a9d41
mov ebx, dword [ebp]
call sym.runtime.gcWriteBarrier3
mov dword [edi], ebx
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x54]
mov esi, dword [ebx + 0x14]
mov dword [edi + 8], esi
lea esi, [0x5ee446]
mov dword [ebp], esi
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x14], edx
mov dword [esp], ebx
call sym.os_exec._Cmd_.Run
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x5a9e2b
lea ebx, [0x634b90]
cmp eax, ebx
je 0x5a9e2b
mov dword [esp + 0x38], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5c2b80]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5a9de8
mov eax, dword [eax + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], eax
lea eax, [0x5ef052]
mov dword [esp], eax
mov dword [esp + 4], 0xb
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call sym.main.fatalf
mov ebx, dword [esp + 0x54]
mov ebx, dword [ebx + 0x54]
mov ebx, dword [ebx + 4]
nop
test ebx, ebx
sete bl
mov byte [esp + 0xec], bl
mov ebx, dword [esp + 0xa8]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
cmp eax, ecx
ja 0x5a9f14
mov ebp, dword [ebx]
mov ebx, dword [ebx + 8]
sub ebx, eax
mov dword [esp + 0x28], ebx
neg ebx
sar ebx, 0x1f
and ebx, eax
mov edi, dword [esp + 0xac]
mov edx, dword [edi + 4]
mov esi, dword [edi + 0xc]
sub ecx, eax
add ebx, ebp
cmp edx, esi
jb 0x5a9f0b
mov eax, dword [edi]
mov ebp, dword [edi + 8]
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xdc], ecx
sub ebp, esi
sub edx, esi
mov ecx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, esi
add eax, ebp
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], ecx
movzx eax, byte [esp + 0x23]
test al, 2
je 0x5a9eed
and eax, 0xfffffffd
mov byte [esp + 0x23], al
mov byte [esp + 0x22], al
mov edx, dword [esp + 0xb4]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x5a9f04
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb8
ret
mov eax, esi
mov ecx, edx
call sym.runtime.panicSliceB
call sym.runtime.panicSliceB
mov eax, 1
xor ecx, ecx
call sym.runtime.panicSliceB
call sym.runtime.panicSliceB
call sym.runtime.panicSlice3Acap
mov eax, ebp
mov ecx, ebx
call sym.runtime.panicIndex
nop
call sym.runtime.deferreturn
add esp, 0xb8
ret
call sym.runtime.morestack_noctxt
jmp sym.main.run