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

Disassembly:
sub esp, 0x80
push ebx
push esi
mov esi, dword [esp + 0x8c]
push edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0xc], 0
cmp dword [edi + 8], 0xc
jae 0x5c88e2
mov eax, dword [esp + 0xa0]
mov word [esp + 0x54], 0x103
mov dword [esp + 0x4c], str._cmdsize_too_small
mov byte [esp + 0x3d], 1
cmp byte [eax], 0
je 0x5c87d1
mov dword [esp + 0x34], eax
mov dl, 3
jmp 0x5c87d7
mov eax, dword [esp + 0x34]
mov dl, 1
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x3c], dl
mov word [esp + 0x60], 0x103
mov dword [esp + 0x58], 0x925080
mov word [esp + 0x6c], 0x103
mov dword [esp + 0x64], str.load_command
mov word [esp + 0x78], 0x109
mov dword [esp + 0x40], str.load_command
mov word [esp + 0x48], 0x903
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0x925080
mov word [esp + 0x24], 0x302
test dl, dl
je 0x5c88ba
cmp dl, 1
jne 0x5c885e
movq xmm0, qword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov bl, al
movq qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dl, byte [esp + 0x19]
jmp 0x5c8874
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov bl, 2
mov dword [esp + 0x10], ecx
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], dl
lea eax, [esp + 0x10]
mov dh, 2
cmp dl, 1
jne 0x5c888b
test bl, bl
je 0x5c888b
cmp bl, dl
je 0x5c888b
mov eax, ecx
mov dh, bl
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x34], str._cmdsize_too_small
mov byte [esp + 0x38], dh
mov byte [esp + 0x39], 3
call fcn.005d4c60
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x80
ret
lea eax, [esp + 0x28]
mov word [esp + 0x18], 0x100
push eax
push esi
mov word [esp + 0x38], 0x100
call fcn.005d4c60
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x80
ret
push dword [edi]
lea eax, [esp + 0x80]
push dword [esp + 0x98]
push eax
call fcn.005bfbc0
mov bl, byte [esp + 0x94]
add esp, 0xc
mov al, bl
not al
test al, 1
jne 0x5c894e
test bl, 1
je 0x5c891d
mov eax, dword [esp + 0x7c]
xor edx, edx
mov dword [esp + 0x7c], edx
mov dword [esi], eax
jmp 0x5c8927
mov edx, dword [esp + 0x7c]
mov dword [esi], 0
xor ecx, ecx
test bl, 1
je 0x5c8cba
test edx, edx
je 0x5c8cba
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x80
ret
mov eax, dword [esp + 0x84]
cmp eax, 0xc
jae 0x5c8a7c
mov eax, dword [esp + 0xa0]
mov word [esp + 0x78], 0x103
mov dword [esp + 0x70], str._name.offset_field_too_small__not_past_the_end_of_the_dylinker_command_struct
mov byte [esp + 0x49], 1
cmp byte [eax], 0
je 0x5c8986
mov dword [esp + 0x40], eax
mov dl, 3
jmp 0x5c898c
mov eax, dword [esp + 0x40]
mov dl, 1
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], dl
mov word [esp + 0x6c], 0x103
mov dword [esp + 0x64], 0x925080
mov word [esp + 0x60], 0x103
mov dword [esp + 0x58], str.load_command
mov word [esp + 0x54], 0x109
mov dword [esp + 0x34], str.load_command
mov word [esp + 0x3c], 0x903
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x925080
mov word [esp + 0x30], 0x302
test dl, dl
je 0x5c8a53
cmp dl, 1
jne 0x5c8a0f
movq xmm0, qword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov bl, al
movq qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dl, byte [esp + 0x19]
jmp 0x5c8a25
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
mov bl, 2
mov dword [esp + 0x10], ecx
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], dl
lea eax, [esp + 0x10]
mov dh, 2
cmp dl, 1
jne 0x5c8a3c
test bl, bl
je 0x5c8a3c
cmp bl, dl
je 0x5c8a3c
mov eax, ecx
mov dh, bl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], str._name.offset_field_too_small__not_past_the_end_of_the_dylinker_command_struct
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], 3
jmp 0x5c8a61
mov word [esp + 0x18], 0x100
mov word [esp + 0x24], 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.005d4c60
add esp, 8
test byte [esp + 0x88], 1
jmp 0x5c8caa
mov ecx, dword [esp + 0x80]
cmp eax, ecx
jb 0x5c8b8a
push dword [esp + 0xa0]
lea ecx, [esp + 0x38]
mov word [esp + 0x7c], 0x103
mov dword [esp + 0x74], str._name.offset_field_extends_past_the_end_of_the_load_command
call fcn.00415f82
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x3c]
mov word [esp + 0x6c], 0x103
mov dword [esp + 0x64], 0x925080
mov word [esp + 0x60], 0x103
mov dword [esp + 0x58], str.load_command
mov word [esp + 0x54], 0x109
mov dword [esp + 0x40], str.load_command
mov word [esp + 0x48], 0x903
mov dword [esp + 0x2c], 0x925080
mov word [esp + 0x30], 0x302
test al, al
je 0x5c8a53
cmp al, 1
jne 0x5c8b30
mov eax, dword [esp + 0x30]
mov dl, al
movq xmm0, qword [esp + 0x28]
mov dword [esp + 0x18], eax
mov bl, byte [esp + 0x19]
movq qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x10]
jmp 0x5c8b59
cmp byte [esp + 0x3d], 1
lea ecx, [esp + 0x34]
mov bl, 2
jne 0x5c8b43
mov ecx, dword [esp + 0x34]
mov bl, al
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dl, 2
mov dword [esp + 0x10], eax
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], bl
lea ecx, [esp + 0x10]
mov dh, 2
cmp bl, 1
jne 0x5c8b70
test dl, dl
je 0x5c8b70
cmp dl, bl
je 0x5c8b70
mov ecx, eax
mov dh, dl
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], str._name.offset_field_extends_past_the_end_of_the_load_command
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], 3
jmp 0x5c8a61
mov edx, dword [edi]
nop dword [eax]
cmp byte [eax + edx], 0
je 0x5c8b9d
inc eax
cmp eax, ecx
jb 0x5c8b90
jmp 0x5c8ba5
cmp eax, ecx
jb 0x5c8ca1
mov eax, dword [esp + 0xa0]
mov word [esp + 0x78], 0x103
mov dword [esp + 0x70], str._dyld_name_extends_past_the_end_of_the_load_command
mov byte [esp + 0x49], 1
cmp byte [eax], 0
je 0x5c8bcd
mov dword [esp + 0x40], eax
mov dl, 3
jmp 0x5c8bd3
mov eax, dword [esp + 0x40]
mov dl, 1
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], dl
mov word [esp + 0x6c], 0x103
mov dword [esp + 0x64], 0x925080
mov word [esp + 0x60], 0x103
mov dword [esp + 0x58], str.load_command
mov word [esp + 0x54], 0x109
mov dword [esp + 0x34], str.load_command
mov word [esp + 0x3c], 0x903
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x925080
mov word [esp + 0x30], 0x302
test dl, dl
je 0x5c8a53
cmp dl, 1
jne 0x5c8c5a
movq xmm0, qword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov bl, al
movq qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dl, byte [esp + 0x19]
jmp 0x5c8c70
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
mov bl, 2
mov dword [esp + 0x10], ecx
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], dl
lea eax, [esp + 0x10]
mov dh, 2
cmp dl, 1
jne 0x5c8c87
test bl, bl
je 0x5c8c87
cmp bl, dl
je 0x5c8c87
mov eax, ecx
mov dh, bl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], str._dyld_name_extends_past_the_end_of_the_load_command
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], 3
jmp 0x5c8a61
mov dword [esi], 0
test bl, 1
je 0x5c8cba
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x5c8cba
mov eax, dword [ecx]
push 1
call dword [eax]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x80
ret