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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
lea rdi, [rsp + 0x30]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a0]
mov rax, qword [0x1401df240]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rax], 0
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400ee039
lea rcx, str._error__Corrupted_magic_value_in_DOS_header_n
call fcn.1400edf20
jmp 0x1400ee9d5
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1a8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x1400ee073
lea rcx, str._error__Corrupted_signature_value_in_NT_header_n
call fcn.1400edf20
jmp 0x1400ee9d5
mov rax, qword [rsp + 0x38]
add rax, 0x108
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x8664
je 0x1400ee0c2
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x1400ee0b1
lea rcx, str._error__Tried_to_open_a_32_bit_executable_n
call fcn.1400edf20
jmp 0x1400ee0bd
lea rcx, str._error__Unsupported_machine_type_n
call fcn.1400edf20
jmp 0x1400ee9d5
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400ee0e3
lea rcx, str._error__Corrupted_magic_value_in_optional_header_n
call fcn.1400edf20
jmp 0x1400ee9d5
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
mov word [rsp + 0x5c], ax
movzx eax, word [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
lea rcx, str._info__hdr_image_base:0x_llx_n____________size_of_image:0x_lx_n____________entry_point_RVA:0x_lx_n____________size_of_headers:_lu_n____________num_of_sections:_i_n
call fcn.1400edf20
mov eax, dword [rsp + 0x50]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call fcn.1400f6b00
mov qword [0x1401e0098], rax
cmp qword [0x1401e0098], 0
jne 0x1400ee17e
jmp 0x1400ee9d5
mov eax, dword [rsp + 0x58]
mov r8d, eax
mov rdx, qword [rsp + 0x1a8]
mov rcx, qword [0x1401e0098]
call fcn.1401a9160
mov dword [rsp + 0x60], 0
jmp 0x1400ee1ad
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
movzx eax, word [rsp + 0x5c]
cmp dword [rsp + 0x60], eax
jge 0x1400ee259
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jbe 0x1400ee233
mov eax, dword [rsp + 0x70]
movsxd rcx, dword [rsp + 0x60]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx + 0x14]
mov rdx, qword [rsp + 0x1a8]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
call fcn.1401a9160
jmp 0x1400ee254
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 8]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x68]
call fcn.1401a9800
jmp 0x1400ee1a3
lea rcx, str._info__Handle_Import_Table_n
call fcn.1400edf20
mov rax, qword [rsp + 0x38]
add rax, 0x88
mov qword [rsp + 0x78], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
jmp 0x1400ee2b8
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
movsxd rax, dword [rsp + 0x88]
imul rax, rax, 0x14
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + rax], 0
je 0x1400ee540
movsxd rax, dword [rsp + 0x88]
imul rax, rax, 0x14
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400f6a90
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x90]
lea rcx, str._info__Module_Name:__s_n
call fcn.1400edf20
cmp qword [rsp + 0x98], 0
jne 0x1400ee350
mov rdx, qword [rsp + 0x90]
lea rcx, str._error__Import_Module_could_not_be_found__s__continue..._n
call fcn.1400edf20
jmp 0x1400ee2a8
movsxd rax, dword [rsp + 0x88]
imul rax, rax, 0x14
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
movsxd rax, dword [rsp + 0x88]
imul rax, rax, 0x14
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax + 0x10]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], 0
jmp 0x1400ee3c6
mov eax, dword [rsp + 0xb0]
inc eax
mov dword [rsp + 0xb0], eax
movsxd rax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
cmp qword [rcx + rax*8], 0
je 0x1400ee53b
movsxd rax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0xc0], rax
movabs rax, 0x8000000000000000
mov rcx, qword [rsp + 0xc0]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x1400ee4a5
mov rax, qword [rsp + 0xc0]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
lea rcx, str._info__Import__s_n
call fcn.1400edf20
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0xd8]
call fcn.1400eb3f0
nop
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x98]
call fcn.1400f6390
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0xd8]
call fcn.1400eba00
jmp 0x1400ee4f6
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rsp + 0xc0]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
lea rcx, str._info__Import_by_ordinal__llu_directly_n
call fcn.1400edf20
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x98]
call fcn.1400f6500
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x1400ee51a
mov rdx, qword [rsp + 0x90]
lea rcx, str._error__Function_could_not_be_found_in_module__s_n
call fcn.1400edf20
jmp 0x1400ee3b6
movsxd rax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb8]
mov qword [rcx + rax*8], rdx
jmp 0x1400ee3b6
jmp 0x1400ee2a8
mov r8, qword [0x1401e0098]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x30]
lea rcx, str._info__Handle_Relocations__0x_llx____0x_llx__n
call fcn.1400edf20
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov rcx, qword [0x1401e0098]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x108], rax
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x78]
cmp dword [rcx + rax], 0
je 0x1400ee7cc
cmp qword [rsp + 0x108], 0
je 0x1400ee7cc
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
cmp dword [rax], 0
je 0x1400ee7cc
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x118], eax
mov rax, qword [rsp + 0x110]
add rax, 8
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x128], 0
jmp 0x1400ee629
mov eax, dword [rsp + 0x128]
inc eax
mov dword [rsp + 0x128], eax
mov eax, dword [rsp + 0x118]
cmp dword [rsp + 0x128], eax
jae 0x1400ee7a6
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x120]
movzx eax, word [rcx + rax*2]
sar eax, 0xc
mov dword [rsp + 0x12c], eax
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x120]
movzx eax, word [rcx + rax*2]
and eax, 0xfff
mov dword [rsp + 0x130], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x130]
add rax, rcx
mov qword [rsp + 0x138], rax
cmp dword [rsp + 0x12c], 0
jne 0x1400ee6b7
jmp 0x1400ee619
cmp dword [rsp + 0x12c], 1
jne 0x1400ee6ee
mov rax, qword [rsp + 0x108]
shr rax, 0x10
mov rcx, qword [rsp + 0x138]
movzx ecx, word [rcx]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x138]
mov word [rcx], ax
jmp 0x1400ee7a1
cmp dword [rsp + 0x12c], 2
jne 0x1400ee724
mov rax, qword [rsp + 0x108]
and rax, 0xffff
mov rcx, qword [rsp + 0x138]
movzx ecx, word [rcx]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x138]
mov word [rcx], ax
jmp 0x1400ee7a1
cmp dword [rsp + 0x12c], 3
jne 0x1400ee74c
mov rax, qword [rsp + 0x138]
mov eax, dword [rax]
add rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x138]
mov dword [rcx], eax
jmp 0x1400ee7a1
cmp dword [rsp + 0x12c], 4
jne 0x1400ee764
lea rcx, str._error__Encountered_IMAGE_REL_BASED_HIGHADJ_n
call fcn.1400edf20
jmp 0x1400ee7a1
cmp dword [rsp + 0x12c], 0xa
jne 0x1400ee78e
mov rax, qword [rsp + 0x138]
mov rax, qword [rax]
add rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x138]
mov qword [rcx], rax
jmp 0x1400ee7a1
mov edx, dword [rsp + 0x12c]
lea rcx, str._error__Encountered_unexpected_relocation_type__i_n
call fcn.1400edf20
jmp 0x1400ee619
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x110], rax
jmp 0x1400ee5c7
mov eax, dword [rsp + 0x58]
lea r9, [rsp + 0x144]
mov r8d, 2
mov edx, eax
mov rcx, qword [0x1401e0098]
call fcn.1400f6a40
mov dword [rsp + 0x154], 0
jmp 0x1400ee809
mov eax, dword [rsp + 0x154]
inc eax
mov dword [rsp + 0x154], eax
movzx eax, word [rsp + 0x5c]
cmp dword [rsp + 0x154], eax
jge 0x1400ee980
movsxd rax, dword [rsp + 0x154]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x158], rax
movsxd rax, dword [rsp + 0x154]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x24]
mov dword [rsp + 0x160], eax
movsxd rax, dword [rsp + 0x154]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x168], rax
movsxd rax, dword [rsp + 0x154]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x170], rax
lea rdx, [0x1401ae154]
mov rcx, qword [rsp + 0x170]
call fcn.14015b410
test eax, eax
jne 0x1400ee8c9
mov rax, qword [rsp + 0x168]
mov eax, dword [rax + 0x10]
mov qword [0x1401e00b0], rax
mov eax, dword [rsp + 0x160]
and eax, 0x20000000
test eax, eax
je 0x1400ee911
mov eax, dword [rsp + 0x160]
and eax, 0x80000000
test eax, eax
je 0x1400ee8f6
mov dword [rsp + 0x180], 0x40
jmp 0x1400ee901
mov dword [rsp + 0x180], 0x20
mov eax, dword [rsp + 0x180]
mov dword [rsp + 0x164], eax
jmp 0x1400ee947
mov eax, dword [rsp + 0x160]
and eax, 0x80000000
test eax, eax
je 0x1400ee92e
mov dword [rsp + 0x184], 4
jmp 0x1400ee939
mov dword [rsp + 0x184], 2
mov eax, dword [rsp + 0x184]
mov dword [rsp + 0x164], eax
movsxd rax, dword [rsp + 0x154]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 8]
lea r9, [rsp + 0x144]
mov r8d, dword [rsp + 0x164]
mov edx, eax
mov rcx, qword [rsp + 0x158]
call fcn.1400f6a40
jmp 0x1400ee7f9
mov eax, dword [rsp + 0x54]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x1a0]
mov qword [rcx], rax
mov eax, 8
imul rax, rax, 9
mov rcx, qword [rsp + 0x78]
cmp dword [rcx + rax], 0
je 0x1400ee9d5
mov eax, 8
imul rax, rax, 9
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [0x1401e00a0], rax
mov rax, qword [rsp + 0x1a0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401ae360]
call fcn.1400f9750
mov rax, rdi
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1400f9a40
add rsp, 0x190
pop rdi
ret