Function at 0x18001ae10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov ebx, dword [rsp + 0xe0]
mov r14, r8
lea r8d, [rcx + 0x10]
mov r10, r9
mov dword [rsp + 0x50], r8d
mov rsi, rdx
mov eax, ecx
cmp ecx, r8d
jae case.0x18001ae97.301
mov rdi, qword [rsp + 0x70]
lea rdx, [0x180000000]
movzx r12d, byte [rsp + 0xe0]
mov r13, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
xor r15d, r15d
add eax, 0xfffffeda
cmp eax, 0x44
ja case.0x18001ae97.309
movzx eax, byte [rdx + rax + 0x1b52c]
mov ecx, dword [rdx + rax*4 + 0x1b4ec]
add rcx, rdx
jmp rcx
xor eax, eax
lock cmpxchg dword [r14 + 0x11c], r15d
cmp eax, 1
jne case.0x18001ae97.309
mov rdx, r14
mov ecx, 0xc0
call fcn.180085660
xchg dword [r14 + 0x11c], r15d
mov eax, ebx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [r14 + 0x14]
cmp dword [r14 + 0x10], eax
jb case.0x18001ae97.309
mov esi, 0x63
cmp esi, 0x63
je 0x18001af04
cmp esi, 0x289b
jne 0x18001af2b
mov qword [r14 + 8], rbp
jmp 0x18001af2b
mov ebp, dword [r14 + 0x14]
mov rcx, qword [r14 + 8]
add ebp, ebp
mov edx, ebp
shl rdx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
cmp rax, 0
je 0x18001b474
mov dword [r14 + 0x14], ebp
mov rbp, rax
add esi, 0x2838
cmp esi, 0x5070
jbe 0x18001aef1
mov r8d, dword [rsp + 0x50]
lea rdx, [0x180000000]
jmp case.0x18001ae97.309
test rdi, rdi
je 0x18001af5d
test r10, r10
je 0x18001af5d
cmp dword [rsi], 0
jge case.0x18001ae97.309
test r14, r14
je 0x18001af69
mov dword [r14], 0xfffffffe
test rdi, rdi
je 0x18001b474
mov dword [rdi + 0x13e8], 0xfffffffe
mov eax, r15d
jmp 0x18001aec3
mov r8d, dword [rsi]
lea rax, [rsp + 0x80]
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001b4dc
mov eax, dword [rsi]
cmp dword [rsp + 0x60], eax
jne 0x18001b4dc
mov r8d, dword [rsp + 0x50]
lea rdx, [0x180000000]
jmp case.0x18001ae97.309
xor r9d, r9d
xor edx, edx
mov rcx, r14
lea r8d, [r9 + 0x3c]
call fcn.1800455c0
test al, al
je 0x18001affd
mov rdx, r14
mov ecx, 0xc0
call fcn.180085660
mov r8d, dword [rsp + 0x50]
lea rdx, [0x180000000]
jmp case.0x18001ae97.309
mov esi, 0xb
mov eax, esi
sub eax, 8
je 0x18001b05e
sub eax, 1
je 0x18001b046
sub eax, 1
je 0x18001b021
cmp eax, 1
jne 0x18001b070
movzx r12d, al
mov r13, r15
jmp 0x18001b070
lea r8, [rsp + 0x58]
mov dword [rsp + 0x5c], r15d
lea rdx, [rsp + 0x5c]
mov dword [rsp + 0x58], r15d
mov rcx, r13
call sub.IMM32.dll_ImmGetConversionStatus
test eax, eax
jne 0x18001b070
xor r12b, r12b
jmp 0x18001b070
test r12b, r12b
je 0x18001b070
mov r8d, dword [rsp + 0x58]
mov rcx, r13
mov edx, dword [rsp + 0x5c]
call sub.IMM32.dll_ImmSetConversionStatus
jmp 0x18001b070
xor r9d, r9d
mov r8, r14
mov edx, 0xa2
xor ecx, ecx
call fcn.180038010
dec esi
cmp esi, 7
ja 0x18001b002
mov r8d, dword [rsp + 0x50]
lea rdx, [0x180000000]
jmp case.0x18001ae97.309
inc dword [r14 + 0x10]
mov eax, dword [rsp + 0x54]
test eax, eax
je case.0x18001ae97.309
nop dword [rax + rax]
lea esi, [rax - 1]
mov dword [rsp + 0x40], 0xeb
mov rax, qword [rsp + 0x100]
xor r9d, r9d
shr esi, 1
xor r8d, r8d
mov rdx, r14
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
lea r15, [rsi*8]
mov rax, qword [r14 + 8]
mov rcx, qword [r15 + rax]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.18003f6b0
test eax, eax
js 0x18001b231
mov rdx, qword [r14 + 8]
mov ecx, dword [rsp + 0x54]
mov rax, qword [r15 + rdx]
mov qword [rdx + rcx*8], rax
mov eax, esi
mov dword [rsp + 0x54], eax
test esi, esi
jne 0x18001b0a0
mov r8d, dword [rsp + 0x50]
lea rdx, [0x180000000]
jmp case.0x18001ae97.309
mov rsi, qword [rsp + 0x100]
mov qword [rsp + 0x98], r15
mov eax, dword [rsi]
mov dword [rsp + 0x90], eax
mov rax, qword [rsi]
shr rax, 0x20
mov dword [rsp + 0x94], eax
jmp case.0x18001ae97.309
xor eax, eax
lock cmpxchg dword [r14 + 0x120], r15d
cmp eax, 1
je 0x18001b2dc
xor edx, edx
lea ecx, [rdx + 0x5d]
call fcn.180068820
test al, al
je 0x18001b2ca
xor r8d, r8d
mov edx, 0xbd
xor ecx, ecx
call fcn.18006fb20
cmp rax, 2
je 0x18001b2ca
mov r8d, dword [rsp + 0x50]
lea rdx, [0x180000000]
jmp case.0x18001ae97.309
test r14, r14
je 0x18001b474
cmp qword [r14], 0
je 0x18001b474
mov rsi, qword [rsp + 0x100]
test rsi, rsi
je 0x18001b474
mov rcx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
test rcx, rcx
jne 0x18001b1f6
mov qword [r14], rax
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x18001b20b
mov qword [rax + 8], r15
jmp 0x18001b20b
mov qword [rcx + 0x10], rax
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x18001b20b
mov rax, qword [rsi + 8]
mov qword [rcx + 8], rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8d, dword [rsp + 0x50]
lea rdx, [0x180000000]
mov ebx, 1
jmp case.0x18001ae97.309
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x54], eax
jmp case.0x18001ae97.309
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x54]
mov ebx, 1
mov rax, qword [rsp + 0x100]
mov rcx, qword [r14 + 8]
mov dword [rsp + 0xe0], 0x169
mov rax, qword [rax]
mov qword [rcx + rdx*8], rax
lea rdx, [0x180000000]
jmp case.0x18001ae97.309
mov rsi, qword [rsp + 0x100]
mov rdi, rsi
test r14, r14
je 0x18001b279
mov dword [r14], r15d
test rsi, rsi
je case.0x18001ae97.309
mov dword [rsi + 0x13e8], r15d
jmp case.0x18001ae97.309
cmp byte [rdi + 0x1394], 0
jne 0x18001b30c
mov eax, dword [rsi]
test eax, eax
je 0x18001b2f5
mov dword [rdi + 0x13b8], eax
mov eax, dword [rsp + 0xe0]
inc eax
mov dword [rsp + 0xe0], eax
cmp eax, r8d
jae case.0x18001ae97.301
mov r10, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xe8]
jmp 0x18001ae74
mov rdx, r14
mov ecx, 0xc0
call fcn.180085660
jmp case.0x18001ae97.301
mov rdx, r14
mov ecx, 0x7a
call fcn.18001fc20
xchg dword [r14 + 0x120], r15d
jmp case.0x18001ae97.301
test r14, r14
je 0x18001b2fd
mov dword [r14], r15d
mov dword [rdi + 0x13e8], r15d
mov eax, r15d
jmp 0x18001aec3
test r14, r14
je 0x18001b318
mov dword [r14], 0xffffffff
mov dword [rdi + 0x13e8], 0xffffffff
mov eax, r15d
jmp 0x18001aec3
mov ebx, dword [rsp + 0xe0]
mov qword [rdi + 0x13b0], r10
nop
mov ebp, 0xc
mov eax, ebp
sub eax, 0xa
je 0x18001b445
sub eax, 1
je 0x18001b401
cmp eax, 1
jne 0x18001b44e
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x18001b45e
cmp dword [rdi + 0x13a0], eax
jne 0x18001b3e7
mov rdx, qword [rdi]
lea ecx, [rax + 0x57]
xor r8d, r8d
call fcn.180052470
test al, al
jne 0x18001b3e7
mov ebx, 0x75
mov eax, ebx
sub eax, 0x74
je 0x18001b3d5
cmp eax, 1
jne 0x18001b3e0
mov r9, qword [rdi]
lea rcx, [rdi + 8]
mov edx, eax
mov r8d, 0x1388
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rdi]
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x18001b45e
mov dword [rdi + 0x1390], esi
mov dword [rdi + 0x13a0], esi
jmp 0x18001b3e0
lea rax, [rdi + 8]
mov qword [rdi + 0x1398], rax
dec ebx
cmp ebx, 0x73
ja 0x18001b392
lea r8, [rdi + 0x1398]
xor r9d, r9d
mov edx, 0xb2
xor ecx, ecx
call fcn.180038010
mov ebx, eax
jmp 0x18001b44e
test ebx, ebx
jne 0x18001b47c
mov rdx, qword [rdi]
lea ecx, [rbx + 0x57]
xor r8d, r8d
call fcn.180052470
test al, al
je 0x18001b44e
cmp dword [rdi + 0x13a0], ebx
jne 0x18001b44e
cmp dword [rdi + 0x13b8], ebx
jbe 0x18001b44e
test r14, r14
je 0x18001b433
mov dword [r14], 0xfffffff9
mov dword [rdi + 0x13e8], 0xfffffff9
mov eax, r15d
jmp 0x18001aec3
cmp dword [rdi + 0x13b8], 0
je 0x18001b4be
dec ebp
cmp ebp, 9
ja 0x18001b345
jmp 0x18001b340
test r14, r14
je 0x18001b46a
mov dword [r14], 0xfffffffa
mov dword [rdi + 0x13e8], 0xfffffffa
mov eax, r15d
jmp 0x18001aec3
cmp ebx, 4
jne 0x18001b4a8
test r14, r14
je 0x18001b489
mov dword [r14], ebx
mov rax, qword [rsp + 0xe8]
mov dword [rdi + 0x13e8], 4
mov eax, dword [rax]
sub eax, dword [rdi + 0x13b8]
jmp 0x18001aec3
test r14, r14
je 0x18001b4b0
mov dword [r14], ebx
mov dword [rdi + 0x13e8], ebx
mov eax, r15d
jmp 0x18001aec3
test r14, r14
je 0x18001b4c6
mov dword [r14], r15d
mov rax, qword [rsp + 0xe8]
mov dword [rdi + 0x13e8], r15d
mov eax, dword [rax]
jmp 0x18001aec3
mov edx, dword [rsi]
lea rcx, str.GMCH_HB_32B_write_requests_on_any_channel
call fcn.180047050
int3