Function at 0x14000f160
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x38], rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r12, qword [r8]
xor ebp, ebp
lea r15, [rsp + 0x40]
mov qword [r15 + 0x20], rbp
xorps xmm0, xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rsi
mov r13, rax
call rsi
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x438
mov rcx, rax
mov rdx, r12
mov r8, r13
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [r15 + 0x28], ebp
mov byte [r15 + 0x30], bpl
mov byte [r15 + 0x34], bpl
mov qword [r15 + 0x38], rbp
lea rcx, [0x14005aa30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [r15 + 0x38], rax
lea rdx, [0x1400585d4]
lea r8, [0x14002a230]
lea r9, [rsp + 0xa0]
mov rcx, r15
call fcn.14000ffb0
test al, al
je 0x14000f7d3
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
lea r15, [rsp + 0x80]
mov rcx, rdi
mov rdx, r15
call fcn.14000f970
cmp byte [r15 + 0x10], 0
jne 0x14000f7d3
mov rax, qword [rdi + 0x30]
lea rdx, [0x140064dc0]
test rax, rax
je 0x14000f27f
cmp qword [rdi + 0x10], rdx
ja 0x14000f27f
lea rcx, [0x140064dc0]
cmp qword [rdi + 0x20], rcx
jb 0x14000f27f
sub rcx, qword [rdi + 8]
add rax, rcx
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0xb8]
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000f7cd
lea rdx, str.LdrLoadDll
lea r8, [0x140028e30]
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0xa0]
call fcn.14000ffb0
test al, al
je 0x14000f7f8
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
lea r15, [rsp + 0x80]
mov rcx, rdi
mov rdx, r15
call fcn.14000f970
cmp byte [r15 + 0x10], 0
jne 0x14000f7f8
mov rax, qword [rdi + 0x30]
lea rdx, [0x140064db8]
test rax, rax
je 0x14000f32a
cmp qword [rdi + 0x10], rdx
ja 0x14000f32a
lea rcx, [0x140064db8]
cmp qword [rdi + 0x20], rcx
jb 0x14000f32a
sub rcx, qword [rdi + 8]
add rax, rcx
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0xb8]
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000f7f2
lea r15, [rsp + 0xa0]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call fcn.14000fad0
cmp byte [r15 + 0x10], 0
jne 0x14000f817
lea rcx, [0x14005aa30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
je 0x14000f7ab
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000f7ab
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000f7ab
movzx edx, word [rax + rcx + 0x18]
cmp edx, 0x20b
jne 0x14000f7ab
mov edx, dword [rax + rcx + 0x50]
cmp rdx, 0x148
jb 0x14000f7ab
lea rcx, [rdi + 0x10]
test rbx, rbx
je 0x14000f4c5
mov al, byte [rdi + 0x28]
mov rdx, qword [rdi + 0x18]
mov r9d, dword [rdx + 0x84]
cmp r9d, 0x10
mov r8d, 0x10
cmovb r8d, r9d
test al, al
jne 0x14000f830
cmp r8d, 2
jb 0x14000f847
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14000f847
mov edx, dword [rdx + 0x90]
mov r14, qword [rdi + 0x10]
add rdx, r14
cmp rdx, rcx
ja 0x14000f847
test rdx, rdx
je 0x14000f847
test r14, r14
je 0x14000f847
cmp dword [rdx], 0
je 0x14000f847
mov rcx, qword [rdi + 0x20]
lea r8, [0x14005878d]
test rcx, rcx
sete r10b
mov r9d, dword [rdx + 0xc]
add r9, r14
cmp r9, rcx
seta r11b
test al, al
jne 0x14000f472
or r10b, r11b
jne 0x14000f847
xor r10d, r10d
movzx esi, byte [r10 + r8]
lea r11d, [rsi - 0x41]
lea ebp, [rsi + 0x20]
cmp r11b, 0x1a
movzx r11d, bpl
cmovae r11d, esi
movzx esi, byte [r9 + r10]
lea ebp, [rsi - 0x41]
lea r15d, [rsi + 0x20]
cmp bpl, 0x1a
movzx ebp, r15b
cmovae ebp, esi
test r11b, r11b
je 0x14000f4b1
inc r10
cmp r11b, bpl
je 0x14000f475
cmp r11b, bpl
je 0x14000f50b
cmp dword [rdx + 0x14], 0
lea rdx, [rdx + 0x14]
jne 0x14000f450
jmp 0x14000f847
add rdx, rax
lea r8, [rsp + 0x80]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov byte [r8 + 0x10], 1
lea rbx, [rsp + 0xb8]
mov rdx, rbx
call fcn.14000fe10
cmp byte [rbx + 0x10], 0
je 0x14000f847
mov r15, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xc0]
mov rbx, r14
jmp 0x14000f54e
test rcx, rcx
je 0x14000f847
mov eax, dword [rdx + 0x10]
add r14, rax
cmp r14, rcx
ja 0x14000f847
cmp qword [r14], 0
mov r15, r14
je 0x14000f53d
mov rax, r14
lea r15, [rax + 8]
cmp qword [rax + 8], 0
mov rax, r15
jne 0x14000f52f
sub r15, r14
cmp r15, 0xfffffffffffffff8
je 0x14000f949
sar r15, 3
shl r15, 3
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.14000f970
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x30]
mov rdx, r14
test rax, rax
je 0x14000f590
mov rdx, r14
cmp qword [rdi + 0x10], r14
ja 0x14000f590
mov rdx, r14
cmp qword [rdi + 0x20], r14
jb 0x14000f590
mov rdx, r14
sub rdx, qword [rdi + 8]
add rax, rdx
mov rdx, rax
lea r13, [rsp + 0x98]
mov qword [r13 - 0x18], rdx
mov qword [r13 - 0x10], r15
mov qword [r13 - 8], rcx
mov qword [r13], 0
mov qword [rsp + 0x20], r13
mov r8, r15
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000f86d
mov ecx, dword [rsp + 0x9c]
test ecx, ecx
js 0x14000f88d
lea r12, [rsp + 0xb8]
mov rcx, rdi
mov rdx, r12
call fcn.14000f970
cmp byte [r12 + 0x10], 0
jne 0x14000f8a9
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x14000f612
cmp qword [rdi + 0x10], r14
ja 0x14000f612
cmp qword [rdi + 0x20], r14
jb 0x14000f612
sub r14, qword [rdi + 8]
add r14, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8, rbx
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000f8c1
mov bl, 1
mov rsi, qword [rsp + 0x38]
cmp dword [rsp + 0x9c], 0
js 0x14000f671
mov r9d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
je 0x14000f71f
mov ecx, dword [rsp + 0x140]
xor eax, eax
test byte [0x140064a98], 2
sete al
xor eax, 3
mov dword [rsp + 0xb8], eax
cmp ecx, 0xb
jne 0x14000f788
or eax, 4
mov dword [rsp + 0xb8], eax
lea rbx, [rsp + 0x80]
mov rcx, rdi
mov rdx, rbx
call fcn.14000f970
cmp byte [rbx + 0x10], 0
jne 0x14000f8fa
mov rax, qword [rdi + 0x30]
lea rdx, [0x140064a98]
test rax, rax
je 0x14000f6f3
cmp qword [rdi + 0x10], rdx
ja 0x14000f6f3
lea rcx, [0x140064a98]
cmp qword [rdi + 0x20], rcx
jb 0x14000f6f3
sub rcx, qword [rdi + 8]
add rax, rcx
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0xb8]
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000f912
mov byte [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000f738
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000f751
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000f761
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400300d0
mov rax, rsi
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp ecx, 4
je 0x14000f954
cmp ecx, 5
je 0x14000f95c
cmp ecx, 8
jne 0x14000f6a9
or eax, 8
jmp 0x14000f6a2
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rsi], rax
movabs rax, 0x800700c100000060
jmp 0x14000f864
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rsi], rax
movabs rax, 0x8007050700000040
jmp 0x14000f864
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rsi], rax
movabs rax, 0x8007050700000046
jmp 0x14000f864
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 0x10], 1
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rsi], xmm0
jmp 0x14000f71f
cmp r8d, 2
jb 0x14000f847
mov edx, dword [rdx + 0x90]
mov r14, qword [rcx]
add rdx, r14
jmp 0x14000f42a
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rsi], rax
movabs rax, 0x8007000d00000078
mov qword [rsi + 8], rax
jmp 0x14000f71f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x9c], ecx
jmp 0x14000f5cf
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x84
jmp 0x14000f8f0
mov rax, qword [rsp + 0xb8]
mov edx, dword [rsp + 0xc0]
mov ecx, dword [rsp + 0xc4]
jmp 0x14000f8e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_NativeNt.h
mov edx, 0x5e6
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 0x10], 1
mov qword [rsi], rax
mov dword [rsi + 8], edx
mov dword [rsi + 0xc], ecx
xor ebx, ebx
jmp 0x14000f63c
mov rax, qword [rsp + 0x80]
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x8c]
jmp 0x14000f932
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_NativeNt.h
mov edx, 0x5e6
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 0x10], 1
mov qword [rsi], rax
mov dword [rsi + 8], edx
mov dword [rsi + 0xc], ecx
jmp 0x14000f71f
int3
or eax, 0x20
jmp 0x14000f6a2
or eax, 0x10
jmp 0x14000f6a2