Function at 0x140049230
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 [0x1409b0280]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, rdx
mov r13, rcx
xor esi, esi
mov r8, qword [rdx]
test r8, r8
je 0x1400495f9
mov r14d, 0x5a4d
cmp word [r8], r14w
jne 0x1400495f9
movsxd rax, dword [r8 + 0x3c]
cmp dword [rax + r8], 0x4550
jne 0x1400495f9
mov r12d, dword [rax + r8 + 0x50]
test r12, r12
je 0x1400495f9
mov ecx, r12d
call fcn.14015a908
mov rbx, rax
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.140195d30
mov qword [rsp + 0x30], rbx
mov rdx, qword [rdi]
test rdx, rdx
je 0x1400495e8
cmp word [rdx], r14w
jne 0x1400495e8
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400495e8
mov r8d, 0x1000
mov rcx, rbx
call fcn.140195690
mov r15, qword [rdi]
movzx ecx, word [rbx]
cmp cx, r14w
jne 0x1400495e8
movsxd r14, dword [rbx + 0x3c]
add r14, rbx
cmp dword [r14], 0x4550
jne 0x1400495e8
movzx edi, word [r14 + 0x14]
add rdi, 0x18
add rdi, r14
je 0x1400495e8
xor eax, eax
cmp ax, word [r14 + 6]
jae 0x140049362
add rdi, 0x14
lea rax, [rdi - 0x14]
test rax, rax
je 0x140049350
mov r8d, dword [rdi - 4]
mov edx, dword [rdi]
add rdx, r15
mov ecx, dword [rdi - 8]
add rcx, rbx
call fcn.140195690
inc esi
add rdi, 0x28
movzx eax, word [r14 + 6]
cmp esi, eax
jl 0x140049333
movzx ecx, word [rbx]
mov r14d, 0x5a4d
cmp cx, r14w
jne 0x1400495e8
movsxd r11, dword [rbx + 0x3c]
cmp dword [r11 + rbx], 0x4550
jne 0x1400495e8
mov rcx, qword [r11 + rbx + 0xb0]
test ecx, ecx
je 0x14004941b
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x14004941b
mov r9d, ecx
add r9, rbx
lea rdi, [r9 + rax]
je 0x14004941b
mov esi, 0xfff
mov eax, dword [r9]
test eax, eax
je 0x14004941b
mov ecx, dword [r9 + 4]
test ecx, ecx
je 0x14004941b
cmp rax, rdi
jae 0x14004941b
lea r10, [rax + rbx]
lea rdx, [r9 + 8]
lea rax, [rcx - 8]
shr rax, 1
test eax, eax
je 0x140049412
mov r8d, eax
nop
movzx ecx, word [rdx]
movzx eax, cx
shr ax, 0xc
and cx, si
cmp ax, 0xa
je 0x1400493f9
cmp ax, 3
jne 0x140049408
movzx ecx, cx
mov rax, rbx
sub rax, qword [r11 + rbx + 0x30]
add qword [rcx + r10], rax
add rdx, 2
sub r8, 1
jne 0x1400493e0
mov eax, dword [r9 + 4]
add r9, rax
jne 0x1400493b4
mov rdx, rbx
mov rcx, r13
call fcn.1400490a0
test al, al
je 0x1400495e8
lea rcx, [r13 + 8]
mov rdx, r12
call fcn.14004adf0
mov rsi, rax
test rax, rax
je 0x1400495e8
cmp word [rbx], r14w
jne 0x1400495dc
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rcx + rbx], 0x4550
jne 0x1400495dc
mov r9d, dword [rcx + rbx + 0x50]
mov r8, rbx
mov rdx, rax
mov rcx, r13
call fcn.1400481e0
test al, al
je 0x1400495dc
lea rcx, str.mapped_n
call fcn.140047960
cmp word [rbx], r14w
jne 0x1400495dc
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rdi + rbx], 0x4550
jne 0x1400495dc
mov eax, dword [rdi + rbx + 0x28]
test eax, eax
je 0x1400495dc
lea r14, [rsi + rax]
lea rcx, [r13 + 8]
mov edx, 0x1000
call fcn.14004adf0
mov r15, rax
test rax, rax
je 0x1400495dc
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], rsi
mov eax, dword [rdi + rbx + 0x50]
mov qword [rsp + 0x50], rax
mov r9d, 0xb0
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, r13
call fcn.1400481e0
test al, al
je 0x1400495d0
test r14, r14
je 0x1400495d0
mov word [rsp + 0x20], 0xb848
mov word [rsp + 0x2a], 0xe0ff
mov qword [rsp + 0x22], r14
mov r9d, ntohs
lea r8, [rsp + 0x20]
mov rdx, qword [r13 + 0xa0]
mov rcx, r13
call fcn.140048280
test al, al
je 0x1400495d0
mov rax, qword [r13 + 0x88]
xor edx, edx
mov rcx, r15
call rax
lea r8, [r13 + 0xb0]
mov r9d, ntohs
mov rdx, qword [r13 + 0xa0]
mov rcx, r13
call fcn.140048280
lea rcx, [r13 + 8]
mov rdx, r15
call fcn.14004afc0
lea rcx, str.executed_n
call fcn.140047960
mov dil, 1
jmp 0x1400495eb
lea rcx, [r13 + 8]
mov rdx, r15
call fcn.14004afc0
lea rcx, [r13 + 8]
mov rdx, rsi
call fcn.14004afc0
xor dil, dil
mov rcx, rbx
call fcn.14015a48c
movzx eax, dil
jmp 0x1400495fb
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14015a1f0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret