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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rdx
mov r13, rcx
xor esi, esi
mov rcx, qword [rdx]
test rcx, rcx
je 0x1400493f6
mov r14d, 0x5a4d
cmp word [rcx], r14w
jne 0x1400493f6
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400493f6
mov r12d, dword [rax + rcx + 0x50]
test r12, r12
je 0x1400493f6
mov ecx, r12d
call fcn.1401685b8
mov rdi, rax
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.14016ad60
mov qword [rsp + 0x30], rdi
mov rdx, qword [rbx]
test rdx, rdx
je 0x1400493e7
cmp word [rdx], r14w
jne 0x1400493e7
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400493e7
mov r8d, 0x1000
mov rcx, rdi
call fcn.14016a6b0
mov r15, qword [rbx]
movzx ecx, word [rdi]
cmp cx, r14w
jne 0x1400493e7
movsxd r14, dword [rdi + 0x3c]
add r14, rdi
cmp dword [r14], 0x4550
jne 0x1400493e7
movzx ebx, word [r14 + 0x14]
add rbx, 0x18
add rbx, r14
je 0x1400493e7
xor eax, eax
cmp ax, word [r14 + 6]
jae 0x140049161
add rbx, 0x14
lea rax, [rbx - 0x14]
test rax, rax
je 0x14004914f
mov r8d, dword [rbx - 4]
mov edx, dword [rbx]
add rdx, r15
mov ecx, dword [rbx - 8]
add rcx, rdi
call fcn.14016a6b0
inc esi
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp esi, eax
jl 0x140049132
movzx ecx, word [rdi]
mov r15d, 0x5a4d
cmp cx, r15w
jne 0x1400493e7
movsxd r10, dword [rdi + 0x3c]
cmp dword [r10 + rdi], 0x4550
jne 0x1400493e7
mov rcx, qword [r10 + rdi + 0xb0]
test ecx, ecx
je 0x14004921b
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x14004921b
mov r9d, ecx
add r9, rdi
lea rbx, [r9 + rax]
je 0x14004921b
mov esi, 0xfff
mov eax, dword [r9]
test eax, eax
je 0x14004921b
mov r8d, dword [r9 + 4]
test r8d, r8d
je 0x14004921b
cmp rax, rbx
jae 0x14004921b
lea r11, [rax + rdi]
lea rdx, [r9 + 8]
lea rax, [r8 - 8]
shr rax, 1
test eax, eax
je 0x140049212
mov r8d, eax
nop
movzx ecx, word [rdx]
movzx eax, cx
shr ax, 0xc
and cx, si
cmp ax, 0xa
je 0x1400491f9
cmp ax, 3
jne 0x140049208
movzx ecx, cx
mov rax, rdi
sub rax, qword [r10 + rdi + 0x30]
add qword [rcx + r11], rax
add rdx, 2
sub r8, 1
jne 0x1400491e0
mov eax, dword [r9 + 4]
add r9, rax
jne 0x1400491b3
mov rdx, rdi
mov rcx, r13
call fcn.140048ea0
test al, al
je 0x1400493e7
mov rdx, r12
lea rcx, [r13 + 8]
call fcn.14004ac10
mov r14, rax
test rax, rax
je 0x1400493e7
cmp word [rdi], r15w
jne 0x1400493db
movsxd rcx, dword [rdi + 0x3c]
cmp dword [rcx + rdi], 0x4550
jne 0x1400493db
mov r9d, dword [rcx + rdi + 0x50]
mov r8, rdi
mov rdx, rax
mov rcx, r13
call fcn.140048010
test al, al
je 0x1400493db
lea rcx, str.mapped_n
call fcn.1400477a0
cmp word [rdi], r15w
jne 0x1400493db
movsxd rbx, dword [rdi + 0x3c]
cmp dword [rbx + rdi], 0x4550
jne 0x1400493db
mov eax, dword [rbx + rdi + 0x28]
test eax, eax
je 0x1400493db
lea r15, [r14 + rax]
mov edx, 0x1000
lea rcx, [r13 + 8]
call fcn.14004ac10
mov r12, rax
test rax, rax
je 0x1400493db
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
movabs rax, 0x1803085156e80c40
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r14
mov eax, dword [rbx + rdi + 0x50]
mov qword [rsp + 0x50], rax
mov r9d, 0xb0
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, r13
call fcn.140048010
test al, al
je 0x1400493cf
test r15, r15
je 0x1400493cf
mov word [rsp + 0x20], 0xb848
mov word [rsp + 0x2a], 0xe0ff
mov qword [rsp + 0x22], r15
mov r9d, ntohs
lea r8, [rsp + 0x20]
mov rdx, qword [r13 + 0xa0]
mov rcx, r13
call fcn.1400480b0
test al, al
je 0x1400493cf
mov rax, qword [r13 + 0x88]
xor edx, edx
mov rcx, r12
call rax
lea r8, [r13 + 0xb0]
mov r9d, ntohs
mov rdx, qword [r13 + 0xa0]
mov rcx, r13
call fcn.1400480b0
mov rdx, r12
lea rcx, [r13 + 8]
call fcn.14004adb0
lea rcx, str.executed_n
call fcn.1400477a0
mov bl, 1
jmp 0x1400493e9
mov rdx, r12
lea rcx, [r13 + 8]
call fcn.14004adb0
mov rdx, r14
lea rcx, [r13 + 8]
call fcn.14004adb0
xor bl, bl
mov rcx, rdi
call fcn.14016813c
movzx eax, bl
jmp 0x1400493f8
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140167e90
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret