Function at 0x10036b3c
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x108
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov rsi, rcx
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x70]
call fcn.10033804
mov ebx, eax
cmp eax, r13d
je 0x10036b86
jmp 0x100376be
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.10033498
cmp eax, r13d
je 0x10036ba1
mov ebx, eax
jmp 0x100376be
mov rbp, r13
mov qword [rsp + 0x30], r13
mov r15d, r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x3c], r13d
mov ecx, dword [rsi + 0x3c]
mov eax, dword [rsi + 0x40]
lea edi, [rcx + rax + 1]
mov eax, edi
imul rax, rax, 0x62
cmp rax, qword [rsp + 0x78]
jae 0x10036c01
lea rcx, [rsi + 0x10]
call fcn.10035b24
mov edx, edi
lea rcx, [rsi + 0x10]
call fcn.10071b88
mov edx, edi
mov rcx, rsi
call fcn.10033588
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.10071b88
mov r15d, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov edi, dword [rsp + 0x28]
mov rbx, r13
mov qword [rsp + 0xb0], r13
cmp rdi, r13
je 0x10036c28
mov rcx, rdi
call fcn.10003f74
mov rbx, rax
mov qword [rsp + 0xb0], rax
cmp dword [rsp + 0x28], r13d
je 0x10036c3c
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov qword [rsp + 0xd0], r13
mov dword [rsp + 0xd8], r13d
mov qword [rsp + 0xe0], r13
mov dword [rsp + 0xe8], r13d
mov dword [rsp + 0xec], r13d
mov rcx, qword [rsp + 0x20]
mov edi, r13d
mov dword [rsp + 0x40], r13d
mov edx, r13d
mov dword [rsp + 0x44], r13d
mov r14d, 1
cmp ecx, r13d
je 0x100372cb
mov rdi, qword [rsp + 0x70]
cmp ecx, dword [rsp + 0x28]
jae 0x100372a9
mov r12d, ecx
cmp byte [r12 + rbx], r13b
jne 0x100372a9
mov byte [r12 + rbx], r14b
mov ecx, dword [rsp + 0x24]
shl r12, cl
mov qword [rsp + 0x80], r12
lea rdx, [r12 + rdi]
mov r8d, ecx
lea rcx, [rsp + 0x50]
call fcn.10032ec4
cmp al, r13b
je 0x10037150
cmp byte [rsp + 0x54], 0xff
jne 0x10037172
mov dword [rsp + 0x60], r13d
cmp dword [rsp + 0x58], r13d
jbe 0x10037133
mov ecx, dword [rsp + 0x24]
mov eax, r14d
shl eax, cl
mov ecx, eax
mov qword [rsp + 0x90], rcx
mov rax, r13
mov qword [rsp + 0x68], r13
sub rcx, rax
add rcx, r12
mov r8, qword [rsp + 0x70]
add rcx, r8
movzx eax, byte [rcx - 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx - 1]
or edx, eax
movzx eax, byte [rcx - 4]
shl ax, 8
movzx edi, ax
movzx eax, byte [rcx - 3]
or edi, eax
sub edi, edx
cmp edi, 6
jb 0x10037194
mov ecx, edx
add rcx, r12
add rcx, r8
movzx eax, byte [rcx]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 1]
or edx, eax
mov eax, dword [rcx + 2]
bswap eax
mov dword [rsp + 0x88], eax
cmp edx, 6
jb 0x10037287
test r14b, dl
jne 0x10037287
lea eax, [rdx + 2]
cmp eax, edi
ja 0x10037287
mov eax, 0xfffffffa
add edi, eax
add edx, eax
movzx eax, byte [rcx + 6]
shl ax, 8
movzx r14d, ax
movzx eax, byte [rcx + 7]
or r14d, eax
lea r8d, [r14 + r14]
cmp r8d, edx
jne 0x100371b6
mov eax, r8d
mov qword [rsp + 0xa8], rax
lea rdx, [rcx + r8 + 8]
mov qword [rsp + 0x98], rdx
mov eax, 0xfffffffe
sub eax, r8d
add edi, eax
cmp edi, 2
jb 0x100371da
movzx r13d, byte [rdx]
shl r13w, 8
movzx eax, byte [rdx + 1]
or r13w, ax
cmp r13w, 1
je 0x10036dfa
cmp r13w, 2
jne 0x100370f7
cmp edi, 0x58
jb 0x100371fe
lea rcx, [rsi + 0x10]
call fcn.100034ac
mov ecx, 0x88
call fcn.10003f74
mov qword [rsp + 0xc0], rax
xor r15d, r15d
cmp rax, r15
je 0x10036e33
mov rcx, rax
call fcn.10033688
mov r12, rax
jmp 0x10036e36
mov r12, r15
mov ecx, dword [rsi + 0x18]
lea eax, [rcx + 1]
mov dword [rsi + 0x18], eax
mov rax, qword [rsi + 0x10]
mov qword [rax + rcx*8], r12
mov eax, dword [rsp + 0x88]
mov dword [r12 + 0x10], eax
mov word [r12 + 0x14], r13w
mov r13, qword [rsp + 0x98]
mov eax, dword [r13 + 8]
bswap eax
mov dword [r12 + 0x18], eax
mov rbp, r13
sub rbp, qword [rsp + 0xa8]
mov r8, r12
mov edx, r14d
mov rcx, rbp
call fcn.10032f68
cmp dword [r12 + 8], 1
ja 0x10036f09
cmp dword [r12 + 8], r15d
jne 0x10036ee9
cmp r14d, 0x15
jne 0x10036ee9
cmp dword [rbp], r15d
jne 0x10036ee9
cmp dword [rbp + 4], r15d
jne 0x10036ee9
lea rdx, [rbp + 8]
mov r8b, 0x48
lea r9, str.HFS_Private_Data
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, byte [rdx + 1]
or cx, ax
movzx eax, r8b
cmp cx, ax
jne 0x10036ee9
add rdx, 2
inc r9
mov r8b, byte [r9]
cmp r8b, r15b
jne 0x10036eb4
lea rdx, str._HFS_Private_Data_
mov rcx, r12
call fcn.10002a5c
cmp dword [r12 + 8], r15d
je 0x10036efa
mov rax, qword [r12]
cmp word [rax], 0x20
jne 0x10036f09
lea rdx, [0x1013fe80]
mov rcx, r12
call fcn.10002a5c
mov eax, dword [r13 + 0xc]
bswap eax
mov dword [r12 + 0x1c], eax
mov eax, dword [r13 + 0x10]
bswap eax
mov dword [r12 + 0x20], eax
mov eax, dword [r13 + 0x14]
bswap eax
mov dword [r12 + 0x24], eax
mov eax, dword [r13 + 0x18]
bswap eax
mov dword [r12 + 0x28], eax
movzx ecx, byte [r13 + 0x2a]
shl cx, 8
movzx eax, byte [r13 + 0x2b]
or cx, ax
mov word [r12 + 0x16], cx
mov eax, dword [r12 + 0x18]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsi + 0x18]
dec eax
mov dword [rsp + 0xa4], eax
lea rcx, [rsp + 0x30]
call fcn.100034ac
mov r15d, dword [rsp + 0x38]
mov rcx, r15
mov r14d, 1
add r15d, r14d
mov dword [rsp + 0x38], r15d
mov rbp, qword [rsp + 0x30]
mov rax, qword [rsp + 0xa0]
mov qword [rbp + rcx*8], rax
add edi, 0xffffffa8
add r13, 0x58
mov qword [rsp + 0x98], r13
cmp word [r12 + 0x14], r14w
jne 0x10036fc3
add dword [rsp + 0x44], r14d
xor r13d, r13d
cmp edi, r13d
jne 0x10037222
jmp 0x1003709c
add dword [rsp + 0x40], r14d
cmp edi, 0xa0
jne 0x10037244
mov rdx, r13
lea rcx, [r12 + 0x30]
call fcn.10034dbc
mov r13d, dword [rsi + 0x44]
mov r8d, dword [r12 + 0x18]
mov r14, qword [rsp + 0x160]
mov rdx, r14
lea rcx, [r12 + 0x30]
call fcn.10034e34
test al, al
je 0x10037023
lea rcx, [r12 + 0x30]
call fcn.10033420
test al, al
je 0x10037023
mov eax, dword [r12 + 0x38]
mov ecx, r13d
shl rax, cl
cmp qword [r12 + 0x30], rax
jbe 0x10037027
mov byte [rsi + 0x50], 1
mov rdx, qword [rsp + 0x98]
add rdx, 0x50
lea rcx, [r12 + 0x50]
call fcn.10034dbc
xor r13d, r13d
cmp qword [r12 + 0x50], r13
jne 0x10037055
cmp dword [r12 + 0x58], r13d
jne 0x10037055
cmp dword [r12 + 0x68], r13d
je 0x1003709c
mov r13d, dword [rsi + 0x44]
lea rdx, [r14 + 0x10]
mov r8d, dword [r12 + 0x18]
lea rcx, [r12 + 0x50]
call fcn.10034e34
test al, al
je 0x10037090
lea rcx, [r12 + 0x50]
call fcn.10033420
test al, al
je 0x10037090
mov eax, dword [r12 + 0x58]
mov ecx, r13d
shl rax, cl
cmp qword [r12 + 0x50], rax
jbe 0x10037099
mov byte [rsi + 0x50], 1
xor r13d, r13d
jmp 0x1003709c
xor r13d, r13d
mov rcx, qword [rsp + 0x170]
cmp rcx, r13
je 0x100370e3
test dword [rsi + 0x18], 0xfff
jne 0x100370ed
mov eax, dword [rsi + 0x18]
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rsp + 0xb8]
call qword [rax + 0x20]
mov edi, eax
cmp eax, r13d
jne 0x10037266
mov r12, qword [rsp + 0x80]
jmp 0x100370fa
mov r12, qword [rsp + 0x80]
jmp 0x100370fa
mov r12, qword [rsp + 0x80]
jmp 0x100370fa
xor r13d, r13d
mov r8d, dword [rsp + 0x60]
mov r14d, 1
add r8d, r14d
mov dword [rsp + 0x60], r8d
mov rax, qword [rsp + 0x68]
add rax, 2
mov qword [rsp + 0x68], rax
cmp r8d, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
jb 0x10036d07
mov rdi, qword [rsp + 0x70]
mov rax, qword [rsp + 0x50]
mov ecx, eax
cmp eax, r13d
jne 0x10036c8d
mov edx, dword [rsp + 0x44]
mov edi, dword [rsp + 0x40]
jmp 0x100372cb
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, r14d
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, r14d
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, r14d
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, 1
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, 1
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, 1
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, r14d
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, r14d
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, edi
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, r14d
jmp 0x100376be
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, r14d
jmp 0x100376be
cmp dword [rsi + 0x3c], edi
jne 0x100372da
mov eax, dword [rsi + 0x40]
add eax, r14d
cmp eax, edx
je 0x100372de
mov byte [rsi + 0x50], r14b
lea rcx, [rsp + 0x30]
call fcn.10034bf8
mov r11d, r14d
cmp r15d, r14d
jbe 0x1003732b
lea rcx, [rbp + 8]
mov eax, dword [rcx]
cmp dword [rcx - 8], eax
je 0x10037309
add r11d, r14d
add rcx, 8
cmp r11d, r15d
jb 0x100372f4
jmp 0x1003732b
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, rbp
call sub.msvcrt.dll_free
nop
mov ebx, r14d
jmp 0x100376be
mov ecx, dword [rsi + 0x28]
mov rdi, r13
mov qword [rsp + 0x90], r13
cmp rcx, r13
je 0x1003734e
call fcn.10003f74
mov rdi, rax
mov qword [rsp + 0x90], rax
mov ecx, r13d
cmp dword [rsi + 0x28], r13d
jbe 0x10037365
mov eax, ecx
mov byte [rax + rdi], r13b
add ecx, r14d
cmp ecx, dword [rsi + 0x28]
jb 0x10037357
mov r12d, r13d
cmp dword [rsi + 0x28], r13d
jbe 0x1003741b
mov r14, r13
mov rax, qword [rsi + 0x20]
mov r10, qword [r14 + rax]
mov r9d, dword [r10]
mov edx, r13d
mov r8d, r15d
cmp r15d, r13d
je 0x100373b5
lea ecx, [rdx + r8]
shr ecx, 1
cmp r9d, dword [rbp + rcx*8]
je 0x100373ae
cmp r9d, dword [rbp + rcx*8]
jae 0x100373a4
mov r8d, ecx
jmp 0x100373a7
lea edx, [rcx + 1]
cmp edx, r8d
jne 0x1003738b
jmp 0x100373b5
mov r13d, dword [rbp + rcx*8 + 4]
jmp 0x100373bb
mov r13d, 0xffffffff
test r13d, r13d
jns 0x100373c9
mov byte [rsi + 0x50], 1
xor r13d, r13d
jmp 0x1003740a
lea rdx, str.com.apple.decmpfs
mov rcx, qword [r10 + 0x38]
call fcn.10001b30
test al, al
je 0x10037407
mov ecx, r13d
mov rax, qword [rsi + 0x10]
mov r9d, r12d
add r9, rdi
mov r8, qword [rax + rcx*8]
mov edx, r12d
mov rcx, rsi
call fcn.10033944
xor r13d, r13d
cmp al, r13b
jne 0x1003740a
mov byte [rsi + 0x50], 1
jmp 0x1003740a
xor r13d, r13d
inc r12d
add r14, 8
cmp r12d, dword [rsi + 0x28]
jb 0x10037375
mov edx, dword [rsi + 0x18]
lea rcx, [rsp + 0x30]
call fcn.10071b88
mov r14d, r13d
cmp dword [rsi + 0x18], r13d
jbe 0x1003751f
mov r15, r13
mov rax, qword [rsi + 0x10]
mov rbp, qword [r15 + rax]
mov eax, dword [rbp + 0x18]
mov dword [rsp + 0x68], eax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x30]
call fcn.100034ac
mov r12d, dword [rsp + 0x38]
mov rcx, r12
inc r12d
mov dword [rsp + 0x38], r12d
mov r13, qword [rsp + 0x30]
mov rax, qword [rsp + 0x68]
mov qword [r13 + rcx*8], rax
mov eax, 0xffffffff
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [rdx], rax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.10034c5c
xor eax, eax
cmp qword [rbp + 0x50], rax
jne 0x100374be
cmp dword [rbp + 0x58], eax
jne 0x100374be
cmp dword [rbp + 0x68], eax
je 0x1003750c
cmp byte [rbp + 0x86], al
je 0x100374ce
cmp byte [rbp + 0x87], al
jne 0x1003750c
mov byte [rsi + 0x52], 1
mov dword [rsp + 0x24], 0xfffffffe
mov eax, dword [rsi + 8]
dec eax
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [rdx], rax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
lea rdx, [rsp + 0xc0]
mov rcx, rsi
call fcn.10034c5c
inc r14d
add r15, 8
cmp r14d, dword [rsi + 0x18]
jb 0x10037438
jmp 0x10037529
mov r12d, dword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.10034bf8
xor r15d, r15d
mov r11d, r15d
cmp dword [rsi + 8], r15d
jbe 0x100375de
mov rdx, r15
mov r8, qword [rsi]
cmp dword [rdx + r8 + 4], 0xfffffffe
je 0x100375cd
mov ecx, dword [rdx + r8]
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax + rcx*8]
mov ebp, dword [rcx + 0x10]
mov r9d, r15d
mov r10d, r12d
cmp r12d, r15d
je 0x10037596
lea ecx, [r9 + r10]
shr ecx, 1
cmp ebp, dword [r13 + rcx*8]
je 0x1003758f
cmp ebp, dword [r13 + rcx*8]
jae 0x10037584
mov r10d, ecx
jmp 0x10037588
lea r9d, [rcx + 1]
cmp r9d, r10d
jne 0x1003756b
jmp 0x10037596
mov ecx, dword [r13 + rcx*8 + 4]
jmp 0x1003759b
mov ecx, 0xffffffff
mov dword [rdx + r8 + 8], ecx
cmp ecx, r15d
jl 0x100375cd
mov eax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi]
mov ecx, dword [rax + rcx*4]
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax + rcx*8]
cmp word [rcx + 0x14], 1
je 0x100375cd
mov dword [rdx + r8 + 8], 0xffffffff
mov byte [rsi + 0x50], 1
inc r11d
add rdx, 0xc
cmp r11d, dword [rsi + 8]
jb 0x10037546
mov ebp, r15d
cmp dword [rsi + 0x28], r15d
jbe 0x10037698
mov r14, r15
mov eax, ebp
cmp byte [rax + rdi], r15b
jne 0x10037689
mov rax, qword [rsi + 0x20]
mov rcx, qword [r14 + rax]
mov r9d, dword [rcx]
mov edx, r15d
mov r8d, r12d
cmp r12d, r15d
je 0x1003763a
lea ecx, [rdx + r8]
shr ecx, 1
cmp r9d, dword [r13 + rcx*8]
je 0x10037633
cmp r9d, dword [r13 + rcx*8]
jae 0x10037629
mov r8d, ecx
jmp 0x1003762c
lea edx, [rcx + 1]
cmp edx, r8d
jne 0x10037610
jmp 0x1003763a
mov ecx, dword [r13 + rcx*8 + 4]
jmp 0x1003763f
mov ecx, 0xffffffff
cmp ecx, r15d
jge 0x1003764a
mov byte [rsi + 0x50], 1
jmp 0x10037689
mov byte [rsi + 0x52], 1
mov dword [rsp + 0x54], ebp
mov dword [rsp + 0x58], ecx
mov eax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi]
mov ecx, dword [rax + rcx*4]
mov dword [rsp + 0x50], ecx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.10034c5c
inc ebp
add r14, 8
cmp ebp, dword [rsi + 0x28]
jb 0x100375ee
mov rcx, rdi
call sub.msvcrt.dll_free
nop
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, r13
call sub.msvcrt.dll_free
nop
mov ebx, r15d
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret