Function at 0x14003f660
Capabilities:
Parse pe header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1b0
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x190], rax
movzx eax, byte [rdx]
xor esi, esi
xor r14d, r14d
mov qword [rsp + 0x30], r9
xor edi, edi
mov qword [rsp + 0x28], r8
mov r13, rdx
mov r12, rcx
mov rbx, rdx
test al, al
je 0x14003f6c9
movsx ecx, al
sub ecx, 0x2e
je 0x14003f6bb
sub ecx, 1
je 0x14003f6b7
cmp ecx, 0x2d
jne 0x14003f6be
xor edi, edi
jmp 0x14003f6be
mov rdi, rbx
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x14003f6a5
mov eax, ebx
sub eax, r13d
mov dword [rsp + 0x20], eax
test rdi, rdi
je 0x14003f70e
mov rax, rdi
sub rax, r13
cmp rax, 3
jle 0x14003f70e
cmp byte [rdi - 3], 0x5f
jne 0x14003f70e
movzx eax, byte [rdi - 2]
cmp al, 0x33
jne 0x14003f6ff
cmp byte [rdi - 1], 0x32
jne 0x14003f70e
mov word [rdi - 2], 0x3436
jmp 0x14003f709
cmp al, 0x36
jne 0x14003f70e
cmp byte [rdi - 1], 0x34
jne 0x14003f70e
mov rsi, rdi
xor edi, edi
mov qword [rsp + 0x1a8], r15
lea rdx, [0x140092660]
mov rcx, r13
call qword [r12 + 0xe0]
mov rbp, rax
test rax, rax
je 0x14003f7fb
xor r15d, r15d
lea rcx, [rsp + 0x40]
mov r9, rax
lea edx, [r15 + 0x40]
lea r8d, [r15 + 1]
call qword [r12 + 0xf8]
cmp rax, 1
jne 0x14003f7ce
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x14003f7ce
mov edx, dword [rsp + 0x7c]
xor r8d, r8d
mov rcx, rbp
call qword [r12 + 0x110]
test eax, eax
jne 0x14003f7ce
mov r9, rbp
lea edx, [rax + 4]
lea r8d, [r15 + 1]
lea rcx, [rsp + 0x24]
call qword [r12 + 0xf8]
cmp rax, 1
jne 0x14003f7ce
cmp dword [rsp + 0x24], 0x4550
jne 0x14003f7ce
mov r9, rbp
lea rcx, [rsp + 0x80]
mov edx, 0x104
mov r8, rax
call qword [r12 + 0xf8]
cmp rax, 1
jne 0x14003f7ce
mov eax, 0x20b
cmp word [rsp + 0x94], ax
je 0x14003f7d4
mov r15d, 1
mov rcx, rbp
call qword [r12 + 0xa0]
test r15d, r15d
jne 0x14003f7fb
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
jne 0x14003f8e9
jmp 0x14003f7fd
xor ebp, ebp
test rdi, rdi
je 0x14003f828
movzx eax, byte [rbx]
mov byte [rbx + 3], al
dec rbx
cmp rbx, rdi
jae 0x14003f802
mov word [rdi], 0x365f
mov r14, rdi
mov byte [rdi + 2], 0x34
xor edi, edi
add dword [rsp + 0x20], 3
jmp 0x14003f716
test rsi, rsi
je 0x14003f85c
movzx eax, byte [rsi]
lea rcx, [rsi - 3]
mov byte [rcx], al
test al, al
je 0x14003f853
nop word [rax + rax]
movzx eax, byte [rsi + 1]
lea rsi, [rsi + 1]
mov byte [rcx + 1], al
lea rcx, [rcx + 1]
test al, al
jne 0x14003f840
xor esi, esi
xor edi, edi
jmp 0x14003f716
test r14, r14
je 0x14003f880
movzx eax, byte [r14 + 3]
mov byte [r14], al
test al, al
je 0x14003f880
nop dword [rax]
movzx eax, byte [r14 + 4]
lea r14, [r14 + 1]
mov byte [r14], al
test al, al
jne 0x14003f870
mov rbx, qword [rsp + 0x28]
cmp dword [rbx], 0
jne 0x14003f8e9
lea rdx, [0x140092660]
mov rcx, r13
call qword [r12 + 0xe0]
test rax, rax
je 0x14003f8e9
mov rcx, rax
call qword [r12 + 0xa0]
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.140051b24
test eax, eax
jne 0x14003f8e9
movzx eax, word [rsp + 0x46]
bt ax, 0xe
jb 0x14003f8e9
bt ax, 0xf
jae 0x14003f8e9
mov dword [rbx], 1
lea rdx, str.Cannot_load_library___s_._n
mov rcx, qword [r12]
mov r8, r13
call qword [r12 + 0x18]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x1a8]
mov dword [rcx], eax
mov rax, rbp
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140042470
add rsp, 0x1b0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret