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

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c9df4
sub esp, 0x6c
mov dword [esp], 0
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call sym.runtime.stringtoslicebyte
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], edx
xor ebx, ebx
jmp 0x4c9b28
mov ebp, dword [esp + 0x50]
lea ebx, [ebp + 1]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x7c]
cmp ebp, ebx
jle 0x4c9b87
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x78]
lea esi, [ebp + ebx*8]
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov ebp, dword [esp + 0x70]
mov ebp, dword [ebp + 0x10]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c9b15
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4c9b92
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call sym.cmd_internal_buildid.findMachoCodeSignature
movzx eax, byte [esp + 0x1c]
test al, al
je 0x4c9c36
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, eax
add eax, 0xfff
mov eax, 0
adc eax, 0
sar eax, 0x1f
shr eax, 0x14
add eax, edx
mov ebx, 0
adc ebx, 0
add eax, 0xfff
adc ebx, 0
shr eax, 0xc
mov ebp, ebx
sar ebx, 0xc
shl ebp, 0x14
or eax, ebp
mov ebp, eax
shl eax, 5
shl ebx, 5
shr ebp, 0x1b
or ebx, ebp
add eax, 6
adc ebx, 0
add eax, 0x6c
adc ebx, 0
cmp eax, ecx
sete al
test ebx, ebx
sete bl
and ebx, eax
test bl, bl
je 0x4c9c36
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], eax
mov ebx, dword [eax + 0x24]
mov dword [esp + 0x68], ebx
mov ebp, dword [eax + 0x28]
mov dword [esp + 0x50], ebp
xor esi, esi
jmp 0x4c9c59
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x6c
ret
inc esi
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x4c]
cmp esi, ebp
jge 0x4c9ce7
lea edi, [ebx + esi*8]
lea edx, [0x514a7c]
cmp dword [edi], edx
jne 0x4c9c73
mov edi, dword [edi + 4]
jmp 0x4c9c78
mov edi, 0
jne 0x4c9ccc
mov eax, dword [edi + 0x18]
cmp eax, 6
je 0x4c9c86
xor eax, eax
jmp 0x4c9cc6
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], edi
mov ecx, dword [edi + 0x14]
mov dword [esp], ecx
lea ecx, [0x4ed7a5]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x48]
lea edx, [0x514a7c]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
mov byte [esp + 0x3b], al
jmp 0x4c9cd8
xor edx, edx
mov byte [esp + 0x3b], dl
lea edx, [0x514a7c]
movzx eax, byte [esp + 0x3b]
test al, al
je 0x4c9c50
jmp 0x4c9ce9
xor edi, edi
mov dword [esp + 0x58], edi
lea eax, [0x4d8400]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
lea ecx, [0x4da9c0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call sym.runtime.assertI2I
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [ecx + 0x30]
mov ebp, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x38]
mov esi, dword [esp + 0x5c]
cmp dword [esi + 0xc], 2
mov esi, dword [esp + 0x64]
mov dword [esp], esi
mov edi, dword [esp + 0x48]
mov dword [esp + 4], edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
lea eax, [0x4ed66d]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 5
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebp
sete cl
mov byte [esp + 0x34], cl
call sym.cmd_internal_codesign.Sign
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c9c36
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x6c
ret
call sym.runtime.morestack_noctxt
jmp sym.cmd_internal_buildid.Rewrite