Function at 0x18005a4c0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea r14d, [rcx + 0xb]
mov rdi, rdx
lea rdx, [0x180000000]
mov rsi, r8
lea r9, [0x1800a5da0]
mov ebp, ecx
cmp ecx, r14d
jae 0x18005a701
mov r12d, 0x46
lea ebx, [rcx - 0xbe]
lea r15d, [r12 + 0x22]
lea r13d, [r12 - 5]
nop dword [rax]
cmp ebx, 0x16
ja case.0x18005a523.2
mov ecx, dword [rdx + rbx*4 + 0x5a920]
add rcx, rdx
jmp rcx
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x18005a737
mov r9, rdi
lea edx, [rax + 2]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
jne 0x18005a737
movzx ecx, byte [rsp + 0x61]
movzx eax, byte [rsp + 0x60]
shl ecx, 8
or ecx, eax
mov dword [rsp + 0x78], ecx
jmp 0x18005a6e2
mov eax, dword [str.cdefg]
mov dword [0x1800a5db9], 0x62615a
mov dword [0x1800a5dbc], eax
movzx eax, word [0x180064388]
mov word [0x1800a5dc0], ax
jmp case.0x18005a523.2
mov word [0x1800a5db5], 0x56
jmp case.0x18005a523.2
mov r8d, 2
lea rdx, [0x180060f98]
lea rcx, [0x1800a5da4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [str.GHIJ]
mov word [0x1800a5da5], r12w
mov dword [0x1800a5da6], eax
movzx eax, byte [0x180064390]
mov byte [0x1800a5daa], al
jmp 0x18005a6e2
movsxd rcx, dword [rdi]
mov eax, dword [rsi]
mov dword [rdx + rcx*4 + 0x96750], eax
jmp case.0x18005a523.2
movzx eax, word [0x180064394]
mov word [0x1800a5dc1], r15w
mov word [0x1800a5dc2], ax
movzx eax, byte [0x180064396]
mov byte [0x1800a5dc4], al
jmp case.0x18005a523.2
mov r8d, 1
mov word [0x1800a5da0], r13w
lea rdx, [0x180060f48]
mov rcx, r9
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
movzx eax, word [0x180064398]
mov word [0x1800a5da2], ax
movzx eax, byte [0x18006439a]
mov byte [0x1800a5da4], al
jmp 0x18005a6e2
mov eax, dword [str.MNOP]
lea rdx, str.QRST
mov dword [0x1800a5dac], eax
mov r8d, 4
movzx eax, byte [0x1800643a0]
mov rcx, r9
mov byte [0x1800a5db0], al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
movzx eax, word [0x180060f00]
mov word [0x1800a5db4], ax
jmp 0x18005a6e2
movzx eax, word [0x180060f2c]
mov word [0x1800a5daa], ax
movzx eax, word [0x180060f30]
mov word [0x1800a5dab], ax
jmp case.0x18005a523.2
mov r8d, 2
lea rdx, [0x1800643ac]
mov rcx, r9
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
movzx eax, word [0x180060efc]
mov word [0x1800a5db8], ax
lea r9, [0x1800a5da0]
lea rdx, [0x180000000]
inc ebx
lea eax, [rbx + 0xbe]
cmp eax, r14d
jb 0x18005a510
cmp ebp, r14d
jae case.0x18005a523.1
mov rbx, qword [rsp + 0x78]
lea edi, [rbp - 0xc9]
mov esi, 0x2f
lea r15d, [rsi + 0x47]
lea r12d, [rsi + 0x4a]
cmp edi, 0xa
ja case.default.0x18005a735
mov ecx, dword [rdx + rdi*4 + 0x5a97c]
add rcx, rdx
jmp rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8d, 0xa
lea rdx, [0x1800a5dd7]
mov ecx, 0x5464e
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa]
jmp case.default.0x18005a735
mov byte [0x1800a5dcb], 0
jmp case.default.0x18005a735
mov byte [0x1800a5dca], 0x71
jmp case.default.0x18005a735
mov word [0x1800a5dcf], r15w
jmp case.default.0x18005a735
movzx eax, word [0x1800643b4]
lea rcx, [r9 - 1]
mov word [0x1800a5dcb], ax
movzx eax, byte [0x1800643b6]
mov byte [0x1800a5dcd], al
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x18005a7b0
movzx eax, word [0x1800643b8]
mov word [rcx], ax
movzx eax, byte [0x1800643ba]
mov byte [rcx + 2], al
jmp case.default.0x18005a735
movzx eax, word [0x1800643bc]
lea rdx, [0x1800a5dd5]
mov r8d, 0xa
mov word [0x1800a5dd2], r12w
mov word [0x1800a5dd3], ax
movzx eax, byte [0x1800643be]
mov byte [0x1800a5dd5], al
lea ecx, [r8 + 2]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
jmp case.default.0x18005a735
lea rcx, [r9 - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x18005a816
movzx eax, word [0x1800643c0]
lea rdx, [0x1800643c4]
mov word [rcx], ax
mov r8d, 2
mov rcx, r9
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov dword [0x1800a5dc7], 0x706f6e
jmp case.default.0x18005a735
mov r8d, 0xa
lea rdx, [0x1800a5ddd]
lea ecx, [r8 - 1]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa]
jmp case.default.0x18005a735
lea rcx, [r9 - 1]
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x18005a870
movzx eax, word [0x1800643c8]
lea rdx, [0x1800643cc]
mov word [rcx], ax
mov r8d, 1
mov rcx, r9
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
jmp case.default.0x18005a735
mov ecx, 0xfc
mov eax, ecx
sub eax, 0xfc
je 0x18005a8bb
sub eax, 1
je 0x18005a8b6
cmp eax, 1
je 0x18005a908
jmp 0x18005a8c2
mov rbx, r9
jmp 0x18005a8c2
mov word [0x1800a5ddf], si
inc ecx
cmp ecx, 0xff
jb 0x18005a8a1
mov r8d, 2
lea rdx, [0x180060ef0]
lea rcx, [0x1800a5dde]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
inc ebp
lea r9, [0x1800a5da0]
inc edi
lea rdx, [0x180000000]
cmp ebp, r14d
jb 0x18005a722
jmp 0x18005a908
mov rbx, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret