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

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov qword [rsp + 0x38], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140005f70
xor eax, eax
jmp 0x1400061c6
movabs rax, 0xdaa043a57f5af889
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov qword [rsp + 0x40], rax
jmp 0x140005fa9
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rcx], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
je 0x1400061c4
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140005fdf
jmp 0x140005f96
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x50], 0
jne 0x140005fed
jmp 0x140005f96
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000601c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140006021
jmp 0x140005f96
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14000604f
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x140006054
jmp 0x140005f96
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x1c], 0
jne 0x140006089
jmp 0x140005f96
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x30], 0
je 0x1400060f1
cmp qword [rsp + 0x70], 0
je 0x1400060f1
cmp qword [rsp + 0x60], 0
je 0x1400060f1
cmp qword [rsp + 0x68], 0
jne 0x1400060f6
jmp 0x140005f96
mov dword [rsp + 0x20], 0
jmp 0x14000610a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x1400061bf
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.1400054c0
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xa0]
call fcn.140002d20
mov qword [rsp + 0x88], rax
movabs rax, 0xdaa043a57f5af889
cmp qword [rsp + 0x88], rax
jne 0x1400061ba
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
jmp 0x1400061c6
jmp 0x140006100
jmp 0x140005f96
xor eax, eax
add rsp, 0xc8
pop rdi
pop rsi
ret