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

Disassembly:
mov ecx, dword [0x6535cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x88]
cmp eax, dword [ecx + 8]
jbe 0x5007de
sub esp, 0x108
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x3c]
test ecx, ecx
je 0x50029f
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
jmp 0x5002e7
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
add esp, 0x108
ret
add edx, 0x14
mov ebx, dword [esp + 0x5c]
lea ecx, [ebx - 1]
test ecx, ecx
jle 0x5003ac
mov dword [esp + 0x5c], ecx
lea edi, [esp + 0xac]
mov esi, edx
call fcn.004642be
movzx ecx, byte [esp + 0xb4]
test cl, 0xe0
jne 0x5002dd
mov ecx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xc4]
inc ebx
mov ebp, dword [esp + 0xc0]
mov esi, dword [esp + 0xb8]
mov edi, dword [esp + 0xbc]
cmp ecx, ebx
jae 0x500397
mov dword [esp + 0xd4], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x515560]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc0], ebp
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0xd4]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov dword [esp + 0xc4], ebx
lea ecx, [ebp + ebx*8 - 8]
mov dword [ecx], esi
mov dword [ecx + 4], edi
jmp 0x5002dd
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.runtime.convTslice
mov eax, dword [esp + 0xc]
lea ecx, [0x55eba4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.sort.Sort
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x50040f
add edx, 0x14
mov esi, dword [esp + 0x5c]
dec esi
mov edi, ecx
mov ecx, esi
mov esi, edi
test ecx, ecx
jle 0x5007a6
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x44], esi
lea edi, [esp + 0xf4]
mov esi, edx
call fcn.004642be
lea edi, [esp + 0x98]
lea esi, [esp + 0xf4]
call fcn.004642be
movzx ecx, byte [esp + 0xa0]
test cl, 0xe0
je 0x500453
mov ecx, dword [esp + 0x44]
jmp 0x500401
mov dword [esp + 0xd4], edx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x48], ebx
lea edi, [esp + 0x64]
xor eax, eax
call fcn.00463dd4
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x7c], 0x3f
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x50], ecx
lea edi, [esp + 0xd8]
call fcn.00463dd9
lea ecx, [sym.cmd_internal_objfile._machoFile_.symbols.func1]
mov dword [esp + 0xd8], ecx
lea edx, [esp + 0xc0]
mov dword [esp + 0xdc], edx
lea edi, [esp + 0xe0]
lea esi, [esp + 0x98]
call fcn.004642be
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
lea ecx, [esp + 0xd8]
mov dword [esp + 4], ecx
call sym.sort.Search
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc4]
cmp ecx, eax
jle 0x50053b
jbe 0x5007d8
mov ecx, dword [esp + 0xc0]
lea ecx, [ecx + eax*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
sub edx, ebx
mov dword [esp + 0x74], edx
sbb ecx, ebp
mov dword [esp + 0x78], ecx
movzx ecx, byte [esp + 0xa1]
test cl, cl
jne 0x50055b
mov dword [esp + 0x7c], 0x55
mov ebx, dword [esp + 0x10c]
jmp 0x5006da
movzx edx, cl
mov ebx, dword [esp + 0x10c]
mov ebp, dword [ebx]
cmp dword [ebp + 0x34], edx
jl 0x5006da
mov eax, dword [ebp + 0x30]
dec ecx
movzx ecx, cl
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
cmp ecx, 6
jne 0x5005b1
cmp dword [edx], 0x41445f5f
jne 0x50059f
cmp word [edx + 4], 0x4154
jne 0x50059f
mov dword [esp + 0x7c], 0x44
jmp 0x500606
cmp dword [edx], 0x45545f5f
jne 0x500606
cmp word [edx + 4], 0x5458
je 0x5005ee
jmp 0x500606
cmp ecx, 0xc
jne 0x500606
mov dword [esp + 0x94], eax
mov dword [esp], edx
lea eax, [0x531ea6]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
je 0x5005f8
mov eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x10c]
mov dword [esp + 0x7c], 0x52
jmp 0x500606
mov eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x10c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
lea ebp, [esp + 0x24]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea ecx, [0x55e218]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
call sym.runtime.concatstring3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, 0xc
je 0x5006a8
cmp eax, 0xd
je 0x50067b
cmp eax, 0x11
jne 0x5006d3
mov dword [esp], ecx
lea eax, [0x53388a]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x11
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5006cb
jmp 0x5006d3
mov dword [esp], ecx
lea eax, [0x5323ca]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xd
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
je 0x5006d3
mov dword [esp + 0x7c], 0x54
jmp 0x5006d3
mov dword [esp], ecx
lea eax, [0x531eb2]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
je 0x5006d3
mov dword [esp + 0x7c], 0x42
mov ebx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x44]
inc ecx
mov edx, dword [esp + 0x48]
cmp edx, ecx
jb 0x5006ed
mov ebp, dword [esp + 0x60]
jmp 0x500728
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5249a0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, ebx
mov ebx, dword [esp + 0x10c]
mov dword [esp + 0x44], ecx
mov eax, dword [0x653670]
lea esi, [ecx + ecx*2]
shl esi, 4
lea edi, [esi + ebp - 0x30]
test eax, eax
je 0x500789
mov dword [esp + 0xd0], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0xcc], edi
lea eax, [0x5249a0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x10c]
mov ebp, dword [esp + 0xd0]
mov edi, dword [esp + 0xcc]
lea esi, [esp + 0x64]
call fcn.00464278
mov eax, ebx
mov ebx, edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xd4]
jmp 0x500401
mov dword [esp + 0x110], ebp
mov dword [esp + 0x114], esi
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
add esp, 0x108
ret
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.cmd_internal_objfile._machoFile_.symbols