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

Disassembly:
mov ecx, dword [0x6535cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x6c]
cmp eax, dword [ecx + 8]
jbe 0x502864
sub esp, 0xec
mov eax, dword [esp + 0xf0]
mov eax, dword [eax]
mov dword [esp], eax
call sym.debug_plan9obj._File_.Symbols
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5024a1
mov eax, dword [esp + 4]
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov edx, eax
mov ebx, ecx
jmp 0x5024f7
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], ecx
add esp, 0xec
ret
mov ebp, dword [esp + 0xb8]
lea eax, [ebp + 0x14]
mov ebp, dword [esp + 0x40]
lea ecx, [ebp - 1]
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x28]
test ecx, ecx
jle 0x5025cf
mov dword [esp + 0x40], ecx
mov dword [esp + 0xb8], eax
lea edi, [esp + 0x8c]
mov esi, eax
call fcn.004642be
mov ecx, dword [0x614334]
mov edx, dword [esp + 0x94]
lea ebx, [0x516540]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.runtime.mapaccess1_fast32
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
test al, al
je 0x5024db
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
inc ecx
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
cmp eax, ecx
jae 0x5025ba
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x515560]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], eax
mov dword [esp + 0xa4], edx
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0xa8], ecx
lea eax, [edx + ecx*8 - 8]
mov dword [eax], ebx
mov dword [eax + 4], ebp
jmp 0x5024db
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
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 + 0xa0]
mov ecx, dword [esp + 0x28]
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x502634
mov ecx, dword [esp + 0xb8]
add ecx, 0x14
mov ebp, dword [esp + 0x40]
dec ebp
mov esi, ecx
mov ecx, ebp
mov ebp, eax
mov eax, esi
test ecx, ecx
jle 0x50282c
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0xb8], eax
lea edi, [esp + 0xd8]
mov esi, eax
call fcn.004642be
lea edi, [esp + 0x78]
lea esi, [esp + 0xd8]
call fcn.004642be
mov ecx, dword [0x614334]
mov edx, dword [esp + 0x80]
lea ebx, [0x516540]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.runtime.mapaccess1_fast32
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
test al, al
jne 0x5026b0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
jmp 0x50261d
lea edi, [esp + 0x48]
xor eax, eax
call fcn.00463dd4
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x34], ecx
lea edi, [esp + 0xbc]
call fcn.00463dd9
lea ecx, [sym.cmd_internal_objfile._plan9File_.symbols.func1]
mov dword [esp + 0xbc], ecx
lea edx, [esp + 0xa4]
mov dword [esp + 0xc0], edx
lea edi, [esp + 0xc4]
lea esi, [esp + 0x78]
call fcn.004642be
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 4], ecx
call sym.sort.Search
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xa8]
cmp ecx, eax
jle 0x50277d
jbe 0x50285e
mov ecx, dword [esp + 0xa4]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
sub ecx, edx
mov dword [esp + 0x58], ecx
sbb eax, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x20]
inc eax
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jb 0x502792
mov ebx, dword [esp + 0x44]
mov edx, ecx
jmp 0x5027c4
mov edx, dword [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x5249a0]
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 [0x653670]
lea ebp, [eax + eax*2]
shl ebp, 4
lea edi, [ebp + ebx - 0x30]
test ecx, ecx
je 0x50281e
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0xb0], edi
lea eax, [0x5249a0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xb4]
mov edi, dword [esp + 0xb0]
lea esi, [esp + 0x48]
call fcn.00464278
jmp 0x50261d
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebp
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
add esp, 0xec
ret
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.cmd_internal_objfile._plan9File_.symbols