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

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov dword [rbp - 4], 0
mov dword [rbp - 0x44], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x58], 0
cmp qword [rbp + 0x10], 0
jne 0x1400016d5
mov rax, qword [rbp - 0x58]
jmp 0x140001828
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400016f3
mov rax, qword [rbp - 0x58]
jmp 0x140001828
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000171e
mov rax, qword [rbp - 0x58]
jmp 0x140001828
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
test eax, eax
jne 0x140001735
mov rax, qword [rbp - 0x58]
jmp 0x140001828
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov dword [rbp - 4], 0
jmp 0x140001814
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
mov rcx, rax
call fcn.140001a0e
mov edx, eax
mov rax, qword [rbp - 0x50]
mov r8d, 0x1505
mov rcx, rax
call fcn.140001a40
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
cmp eax, dword [rbp + 0x18]
jne 0x140001810
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
lea rcx, [rdx + rdx]
mov rdx, qword [rbp - 0x38]
add rdx, rcx
movzx edx, word [rdx]
movzx edx, dx
lea rcx, [rdx*4]
mov rdx, qword [rbp - 0x40]
add rdx, rcx
mov edx, dword [rdx]
mov edx, edx
add rax, rdx
jmp 0x140001828
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jb 0x140001794
mov rax, qword [rbp - 0x58]
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x140001d70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002b90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002b90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]