Function at 0x18005c330
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
lea eax, [r8 + 0xc6]
mov r14, r9
lea r9, [0x180000000]
mov r12d, r8d
mov r15, rdx
mov r13, rcx
cmp r8d, eax
jae 0x18005c546
mov rax, qword [rbp - 0x59]
lea edi, [r8 - 0x13]
mov r8, qword [rbp - 0x59]
mov esi, 0xb
mov r13, qword [rbp - 0x59]
mov qword [rbp - 0x61], r8
mov qword [rbp - 0x69], rax
cmp edi, 0xb9
ja case.0x18005c3b1.11
movzx eax, byte [r9 + rdi + 0x5c864]
mov ecx, dword [r9 + rax*4 + 0x5c834]
add rcx, r9
jmp rcx
lea r9, [rbp - 0x59]
mov qword [rbp - 0x59], 8
lea r8, [0x1800456c0]
xor edx, edx
mov ecx, 0xd6
call fcn.180072620
mov r8, qword [rbp - 0x61]
mov qword [r8 + 0x10], rax
jmp 0x18005c520
mov dword [r8], 0
jmp case.0x18005c3b1.11
mov edx, dword [r13 + 4]
lea rcx, str.ass_read_file__s_:_fopen_failed
call fcn.180083ee0
jmp 0x18005c51c
mov r9, r15
mov qword [rbp - 0x59], 0x20
mov r8, r14
lea rdx, [rbp - 0x59]
mov ecx, 0x1f
call fcn.180013a80
jmp 0x18005c51c
mov edx, 0x20
lea ecx, [rdx - 0x1f]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
lea r9, [rbp - 0x59]
mov qword [rbp - 0x59], 8
lea r8, [0x180045280]
mov qword [rbp - 0x61], rax
xor edx, edx
mov ecx, 0xd6
call fcn.180072620
mov r8, qword [rbp - 0x61]
mov qword [r8 + 8], rax
jmp 0x18005c520
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
jmp 0x18005c51c
xor edx, edx
mov qword [rbp - 0x69], rdx
xor r13d, r13d
jmp 0x18005c52b
mov edx, 0x90
mov rcx, r13
call fcn.180053900
mov r8, qword [rbp - 0x61]
lea r9, [0x180000000]
mov rdx, rax
mov qword [rbp - 0x69], rax
jmp 0x18005c52b
mov rax, qword [r14]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x41], r15
jmp case.0x18005c3b1.11
lea rcx, [r13 + 4]
mov edx, 0x47
call fcn.18004ab90
lea r8, [r13 + 8]
mov edx, 0x6e
xor ecx, ecx
mov rbx, rax
call fcn.180083af0
mov rdx, qword [rbp - 0x69]
lea r9, [0x180000000]
mov r8, qword [rbp - 0x61]
add rax, rbx
add rdx, rax
mov qword [rbp - 0x69], rdx
jmp 0x18005c52b
lea rcx, str.libwinptywinpty.cc
call fcn.180083ee0
movzx r8d, byte [r13]
lea rax, [0x180000000]
mov edx, r8d
lea rcx, str.CHROMIUM_TEST_LAUNCHER_BOT_MODE
mov r8, qword [rax + r8*8 + 0x9d008]
call fcn.180083ee0
mov r8, qword [rbp - 0x61]
lea r9, [0x180000000]
mov rdx, qword [rbp - 0x69]
add edi, 0x12
sub rsi, 1
jne 0x18005c391
mov qword [rbp - 0x59], r13
mov r13, qword [rbp + 0x67]
mov rbx, qword [rbp - 0x59]
jmp 0x18005c55e
mov r8, qword [rbp - 0x59]
mov rbx, qword [rbp - 0x59]
mov qword [rbp - 0x59], rbx
mov rdx, qword [rbp - 0x59]
mov qword [rbp - 0x69], rdx
mov qword [rbp - 0x61], r8
lea edi, [r12 - 0xb]
mov dword [rbp + 0x77], edi
cmp r12d, edi
jbe case.0x18005c5a1.0
mov rdi, qword [rbp - 0x59]
lea r15d, [r12 - 0x11]
mov rsi, qword [rbp - 0x59]
mov eax, dword [rbp + 0x77]
nop
cmp r15d, 0x97
ja case.default.0x18005c5a1
movzx eax, byte [r9 + r15 + 0x5c948]
mov ecx, dword [r9 + rax*4 + 0x5c920]
add rcx, r9
jmp rcx
xor r14d, r14d
cmp dword [rbp - 0x51], r14d
jbe case.0x18005c5a1.9
mov ebx, 6
cmp ebx, 6
je 0x18005c5ff
cmp ebx, 0x17
je 0x18005c5df
cmp ebx, 0x28
jne 0x18005c619
mov r8, qword [r13 + 0x10]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 0xcf
mov rcx, rdi
call fcn.1800828d0
jmp 0x18005c619
mov r8, rdi
lea rcx, [rbp - 0x41]
mov edx, 0x105
call fcn.180045400
test al, al
jne 0x18005c619
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18005c619
xor r9d, r9d
mov dword [rsp + 0x20], PathMakeUniqueName
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180055e60
mov rdi, rax
add ebx, 0x11
cmp ebx, 0x39
jb 0x18005c5b5
inc r14d
cmp r14d, dword [rbp - 0x51]
jb 0x18005c5b0
jmp 0x18005c7e7
mov r8d, 0x6d
lea rdx, [rbp - 0x41]
mov rcx, r13
call fcn.180061230
jmp 0x18005c7e7
lea rcx, [r13 + 0x18]
mov r8d, 0x6d
lea rdx, [rbp - 0x41]
call fcn.180061230
test al, al
je 0x18005c810
mov dword [rbp - 0x49], 1
jmp 0x18005c7e7
mov r8d, dword [r13]
mov r9, qword [0x1800a21d0]
sub r8, rdx
mov rcx, qword [rbx + 0x10]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdx, rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x49], rbx
jmp 0x18005c7eb
mov dword [r8 + 0x18], 0
mov qword [rbp - 0x49], r8
jmp case.0x18005c5a1.9
lea rax, [rbp - 0x51]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
lea r9, [rbp - 0x41]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0xd5
lea rcx, [rbp - 9]
call fcn.180044610
mov eax, dword [rax]
test al, al
jne 0x18005c7e7
mov ecx, 0x4b
nop
mov eax, ecx
sub eax, 0x4b
je 0x18005c6f2
cmp eax, 1
je case.0x18005c5a1.0
jmp 0x18005c6f5
mov dword [rbp - 0x49], ebx
inc ecx
cmp ecx, 0x4d
jb 0x18005c6e0
jmp 0x18005c7e7
mov edx, dword [rbx + 8]
lea rcx, str.Derived_to_base_conversion
call fcn.180083ee0
mov ecx, dword [r13]
sub rcx, qword [rbp - 0x69]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 0x10], rax
jmp 0x18005c7e7
lea rax, [rbp - 0x51]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
lea r9, [rbp - 0x41]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0xd5
lea rcx, [rbp - 9]
call fcn.180044610
mov eax, dword [rax]
test al, al
je 0x18005c812
mov r14d, ebx
cmp dword [rbp - 0x51], ebx
jbe 0x18005c7e7
mov ebx, 0xdd
mov eax, ebx
sub eax, 0xdd
je 0x18005c790
cmp eax, 1
jne 0x18005c7d0
mov r8, qword [r13 + 8]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 0xcf
mov rcx, rsi
call fcn.1800828d0
jmp 0x18005c7d0
xor r8d, r8d
mov edx, 0x8c
xor ecx, ecx
call fcn.180045290
mov r9, rax
mov dword [rsp + 0x28], 0xcc
lea r8, [rbp - 0x41]
mov qword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov rsi, rax
call fcn.1800522e0
test al, al
jne 0x18005c7d0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
cmp ebx, 0xdf
jb 0x18005c767
inc r14d
cmp r14d, dword [rbp - 0x51]
jb 0x18005c762
mov rdx, qword [rbp - 0x69]
mov r8, qword [rbp - 0x61]
mov eax, dword [rbp + 0x77]
dec r12d
dec r15d
cmp r12d, eax
jbe case.0x18005c5a1.0
mov rbx, qword [rbp - 0x59]
lea r9, [0x180000000]
jmp 0x18005c580
xor ebx, ebx
mov dword [rbp - 0x49], ebx
mov rax, qword [rbp - 0x49]
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret