Function at 0x180005380
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x460
mov rax, qword [rdx]
mov rcx, rdx
movzx ebx, r9b
mov r14, r8
call qword [rax + 0xa0]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x180005405
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180008128]
lea rdx, str.GetCodeFromFileName:_Couldnt_open_file
mov r8d, eax
mov rcx, qword [rcx]
add rcx, 0x18
call qword [sym.imp.HighPoly.dll_public:_void___cdecl_ShowDebugMessage::operator___char_const____ptr64__int____ptr64]
add rsp, 0x460
pop r14
pop rbp
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7fff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x180005447
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.GetCodeFromFileName:_Could_not_get_code_from_file
mov rax, qword [0x180008128]
mov rcx, qword [rax]
add rcx, 0x18
call qword [sym.imp.HighPoly.dll_public:_void___cdecl_ShowDebugMessage::operator___char_const____ptr64__int____ptr64]
jmp 0x180005626
xor eax, eax
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, rbp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea r8d, [rax + 0x18]
mov byte [rsp + 0x60], al
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800054a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.GetCodeFromFileName:_Could_not_get_code_from_file
mov rax, qword [0x180008128]
mov rcx, qword [rax]
add rcx, 0x18
call qword [sym.imp.HighPoly.dll_public:_void___cdecl_ShowDebugMessage::operator___char_const____ptr64__int____ptr64]
test bl, bl
je 0x180005615
mov qword [rsp + 0x480], rsi
lea rax, [rsp + 0x48]
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1800054c0
movabs rax, 0xaaaaaaaaaaaaaaab
mov byte [rsp + 0x70], 0
mul rcx
xor ebx, ebx
mov rsi, rdx
shr rsi, 1
test esi, esi
jle 0x1800055fa
mov qword [rsp + 0x490], rdi
lea rdi, [rsp + 0x4a]
movsx eax, sil
mov qword [rsp + 0x498], r15
imul r15d, eax, 0x21
mov byte [rsp + 0x489], bl
nop
movzx eax, byte [rdi - 1]
lea rdx, [rsp + 0x68]
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0x40]
movzx eax, byte [rdi]
mov r8d, 0x10
mov byte [rsp + 0x41], al
mov byte [rsp + 0x42], 0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
movsx ecx, bl
movsx edx, bl
imul edx, ecx
mov ecx, 0x3e7
sub dl, r15b
sub dl, 0x4f
xor al, dl
mov byte [rsp + 0x488], al
lea rax, [rsp + 0x70]
nop dword [rax]
cmp byte [rax], 0
je 0x18000556e
inc rax
sub rcx, 1
jne 0x180005560
test rcx, rcx
je 0x18000557e
mov r8d, 0x3e7
sub r8, rcx
jmp 0x180005581
xor r8d, r8d
test rcx, rcx
je 0x1800055dc
mov edx, 0x3e7
lea rax, [rsp + 0x70]
lea rax, [rax + r8]
sub rdx, r8
je 0x1800055ce
lea rcx, [r8 + 0x7ffffc17]
add rcx, rdx
lea r9, [rsp + 0x488]
sub r9, rax
nop
test rcx, rcx
je 0x1800055ce
movzx r8d, byte [r9 + rax]
test r8b, r8b
je 0x1800055ce
mov byte [rax], r8b
dec rcx
inc rax
sub rdx, 1
jne 0x1800055b0
test rdx, rdx
lea rcx, [rax - 1]
cmovne rcx, rax
mov byte [rcx], 0
inc ebx
add rdi, 3
cmp ebx, esi
jl 0x180005510
mov r15, qword [rsp + 0x498]
mov rdi, qword [rsp + 0x490]
mov rax, qword [r14]
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [rax + 0xa8]
mov rsi, qword [rsp + 0x480]
jmp 0x180005626
mov rax, qword [r14]
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [rax + 0xa8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x460
pop r14
pop rbp
pop rbx
ret