Function at 0x18009da50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x180106b38]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r10, r9
mov qword [rsp + 0x48], r9
mov r9, qword [rsp + 0x148]
lea r15d, [rdx - 0xa]
xor edi, edi
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], r9
mov r11, r8
lea r8, [0x180000000]
mov r13d, edx
mov r12, rcx
cmp edx, r15d
jbe 0x18009dc93
mov ebp, dword [rsp + 0x60]
lea r14d, [rdx - 0x4a]
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x38], rdx
mov r8d, 0x32
cmp r14d, 0x29
ja case.0x18009daf2.2
lea r9, [0x180000000]
movzx eax, byte [r9 + r14 + 0x9e05c]
mov ecx, dword [r9 + rax*4 + 0x9e034]
add rcx, r9
jmp rcx
cmp word [r10], 0
mov esi, edi
mov qword [rsp + 0x80], rdi
je 0x18009db61
mov r15d, 0x6c
nop dword [rax + rax]
mov ebx, r15d
mov eax, ebx
sub eax, 0x6b
je 0x18009db47
cmp eax, 1
jne 0x18009db49
movzx edx, word [r10 + rdi*2]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcrtomb]
mov r10, qword [rsp + 0x48]
inc rdi
mov rbp, rax
jmp 0x18009db49
add esi, ebp
dec ebx
cmp ebx, 0x6a
ja 0x18009db13
cmp word [r10 + rdi*2], 0
jne 0x18009db10
mov rdx, qword [rsp + 0x38]
lea r15d, [r13 - 0xa]
mov dword [rsp + 0x50], esi
xor edi, edi
jmp case.0x18009daf2.2
mov dword [r11], 0x19
inc qword [r10 + 0xd0]
mov rax, qword [r10 + 0xc0]
test rax, rax
je case.0x18009daf2.2
mov rdx, r11
mov rcx, r10
call rax
mov rdx, qword [rsp + 0x38]
jmp 0x18009dc12
mov qword [r11 + 0x10], 1
jmp case.0x18009daf2.2
mov word [rsp + 0xb4], r8w
jmp case.0x18009daf2.2
mov dword [rsp + 0xb0], 0x730077
jmp case.0x18009daf2.2
mov r9d, 0x93
lea rcx, [rsp + 0x98]
mov r8, r10
xor edx, edx
call fcn.1800240c0
mov rdx, qword [rsp + 0x38]
mov ecx, edi
cmp eax, 0xffffffff
setne cl
mov dword [rsp + 0x50], ecx
jmp 0x18009dc12
mov rax, qword [r10 + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov r8d, 0xfc
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call fcn.180018860
mov rdx, rax
mov qword [rsp + 0x38], rax
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x78]
dec r14d
lea ecx, [r14 + 0x4a]
cmp ecx, r15d
ja 0x18009dac7
mov r9, qword [rsp + 0x70]
lea r8, [0x180000000]
lea eax, [r13 + 0xa]
mov dword [rsp + 0x60], eax
cmp r13d, eax
jae case.0x18009daf2.0
mov rsi, qword [rsp + 0x140]
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x58]
nop word [rax + rax]
lea eax, [r13 - 0x55]
cmp eax, 0x15
ja case.0x18009dc88.93
mov ecx, dword [r8 + rax*4 + 0x9e088]
add rcx, r8
jmp rcx
mov rax, qword [r12]
jmp 0x18009e009
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x38], rdx
jmp 0x18009dc38
mov eax, dword [rsp + 0x44]
test eax, eax
je case.0x18009dc88.93
nop
mov edi, 0xa2
cmp edi, 0xa2
je 0x18009dcef
cmp edi, 0x7d4c
je 0x18009dce5
cmp edi, 0xf9f6
jne 0x18009dd18
cmp dword [rsp + 0x40], 0
jne 0x18009dd18
test eax, eax
je 0x18009dd18
mov dword [rsp + 0x30], 8
jmp 0x18009de68
sub eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
jmp 0x18009dd18
mov rdx, qword [rsp + 0x68]
mov ecx, 0x7fffffff
cmp eax, ecx
mov r8d, eax
cmovg r8d, ecx
mov ecx, dword [r11]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov dword [rsp + 0x40], eax
cmp eax, 0
jl 0x18009dd38
mov eax, dword [rsp + 0x44]
mov r11, qword [rsp + 0x78]
add edi, 0x7caa
cmp edi, 0x175fe
jbe 0x18009dcb5
test eax, eax
je 0x18009dfc6
jmp 0x18009dcb0
mov dword [rsp + 0x30], 6
jmp 0x18009de68
mov ecx, dword [r10 + 0x1c]
add ecx, dword [r10 + 0x18]
mov r15d, dword [r10 + 8]
add ecx, dword [r10 + 0x14]
add r15, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
jmp 0x18009dfc6
mov r13d, 0xf5
nop
mov eax, r13d
sub eax, 0xf1
je 0x18009ddd7
sub eax, 1
je 0x18009ddc3
sub eax, 1
je 0x18009ddb6
sub eax, 1
je 0x18009dd9c
cmp eax, 1
jne 0x18009df1b
mov rbx, qword [rsp + 0x68]
jmp 0x18009df1b
mov ebp, dword [r10 + 0x14]
add rbp, qword [rsp + 0x68]
mov r14d, dword [r10 + 0x18]
add r14, rbp
mov qword [rsp + 0x58], rbp
jmp 0x18009df1b
mov qword [rsp + 0x88], r14
jmp 0x18009df1b
mov eax, dword [r10 + 0x1c]
add rax, r14
mov qword [rsp + 0x90], rax
jmp 0x18009df1b
xor edx, edx
nop dword [rax]
mov edi, edx
cmp edi, 6
ja case.default.0x18009ddf8
mov eax, edi
mov ecx, dword [r8 + rax*4 + 0x9e0e0]
add rcx, r8
jmp rcx
mov ecx, dword [rbx + 8]
call r12
mov dword [rbx + 8], eax
jmp 0x18009deef
mov ecx, dword [rbx]
lea rax, [rcx + rsi]
cmp rax, r15
ja 0x18009dcd8
lea rax, [rcx + rbp]
cmp rax, qword [rsp + 0x88]
ja 0x18009dcd8
jmp case.default.0x18009ddf8
mov eax, dword [rbx]
mov ecx, dword [rbx + 4]
add rbp, rax
lea rax, [r14 + rcx]
cmp rax, qword [rsp + 0x90]
ja 0x18009dcd8
mov r8d, ecx
mov rdx, r14
mov ecx, dword [r9]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cmp eax, dword [rbx + 4]
je 0x18009deef
mov dword [rsp + 0x30], 7
mov rcx, qword [rsp + 0x68]
mov r13d, 0x5b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18009dfc6
mov ecx, dword [rbx]
call r12
mov ecx, dword [rbx + 4]
mov dword [rbx], eax
call r12
mov dword [rbx + 4], eax
jmp 0x18009deef
mov eax, dword [rbx + 4]
add r14, rax
jmp case.default.0x18009ddf8
movsxd rcx, dword [rbx + 8]
add rcx, rsi
cmp rcx, r15
ja 0x18009dcd8
mov rsi, rcx
add rbx, 0xc
jmp case.default.0x18009ddf8
mov r8d, dword [rbx]
mov eax, edx
test r8d, r8d
je 0x18009ded6
nop dword [rax + rax]
mov ecx, eax
inc eax
lea rdx, [rcx + rbp]
movzx ecx, byte [rcx + rsi]
add byte [rdx], cl
mov r8d, dword [rbx]
cmp eax, r8d
jb 0x18009dec0
mov ecx, dword [r9]
mov rdx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov ecx, dword [rbx]
cmp eax, ecx
jne 0x18009de60
add rsi, rcx
xor edx, edx
lea r8, [0x180000000]
mov r9, qword [rsp + 0x70]
inc edi
lea eax, [rdi + 0xa9]
cmp eax, 0xb0
jb 0x18009dde2
cmp rbx, qword [rsp + 0x58]
jb 0x18009dde0
dec r13d
cmp r13d, 0xf0
jbe 0x18009de68
mov r9, qword [rsp + 0x70]
mov r10, qword [rsp + 0x48]
jmp 0x18009dd70
mov dword [rsp + 0xba], 0x2e0032
mov dword [rsp + 0xbe], 0x6c0064
jmp case.0x18009dc88.93
mov dword [rsp + 0xb6], 0x33005f
jmp case.0x18009dc88.93
mov rdx, qword [rdx]
test rdx, rdx
je 0x18009dfc6
mov rax, qword [r10 + 0x58]
mov rcx, qword [rax + 0x10]
mov qword [rcx + 8], rdx
jmp 0x18009dfc6
cmp qword [rsp + 0x68], 0
je 0x18009dff2
mov eax, dword [r10 + 0x1c]
add eax, dword [r10 + 0x18]
add eax, dword [r10 + 0x14]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x30], edi
jmp case.0x18009dc88.93
mov rax, qword [rdx + 8]
mov qword [r10 + 0x98], rax
jmp case.0x18009dc88.93
mov edx, ILClone
mov dword [rsp + 0xc2], 0x6c
mov r8d, 0xdb
lea rcx, [rsp + 0xb0]
call fcn.1800355e0
mov r12, rax
mov rdx, qword [rsp + 0x38]
inc r13d
cmp r13d, dword [rsp + 0x60]
jae case.0x18009daf2.0
mov r9, qword [rsp + 0x70]
lea r8, [0x180000000]
mov r10, qword [rsp + 0x48]
xor edi, edi
mov r11, qword [rsp + 0x78]
jmp 0x18009dc70
mov dword [rsp + 0x50], 1
jmp case.0x18009daf2.0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800bfc40
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret