Function at 0x140102030
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14, rcx
xor edi, edi
mov rcx, qword [rcx + 8]
mov rsi, rdx
test rcx, rcx
jne 0x140102066
mov r15d, edi
jmp 0x14010207a
xor r9d, r9d
xor r8d, r8d
mov edx, 0x445
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
mov rcx, rsi
call fcn.140138220
test al, al
je 0x140102311
cmp qword [rsi + 0x18], 8
mov qword [rsp + 0xa0], rbp
mov rbp, rdi
mov qword [rsp + 0x40], rdi
jb 0x1401020a6
mov rdx, qword [rsi]
jmp 0x1401020a9
mov rdx, rsi
lea r8, [0x1402061c4]
lea rcx, [rsp + 0x40]
call fcn.14019a068
mov r9, qword [rsp + 0x40]
test r9, r9
jne 0x1401020cb
xor al, al
jmp 0x140102309
xor eax, eax
mov qword [rsp + 0xe0], rbx
lea rcx, [rsp + 0x60]
mov byte [rsp + 0x60], dil
mov word [rsp + 0x61], ax
lea edx, [rax + 1]
lea r8d, [rax + 2]
call fcn.14019a348
cmp byte [rsp + 0x60], 0xff
jne 0x140102105
cmp byte [rsp + 0x61], 0xfe
mov eax, InitCommonControls
cmove rbp, rax
mov rcx, qword [rsp + 0x40]
call fcn.14019a494
cmp qword [rsi + 0x18], 8
jb 0x14010211b
mov rcx, qword [rsi]
jmp 0x14010211e
mov rcx, rsi
mov ebx, 3
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], ebx
lea r8d, [rbx - 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x14010214e
xor al, al
jmp 0x140102301
mov qword [rsp + 0x98], r12
lea rdx, [0x1402032a0]
movsxd r12, eax
mov r9d, 1
lea rax, [0x140101840]
mov qword [rsp + 0x90], r13
or r13, 0xffffffffffffffff
mov qword [rsp + 0x48], r12
mov r8, r13
mov dword [rsp + 0x50], edi
mov rcx, rsi
mov qword [rsp + 0x54], rax
call fcn.1401024f0
mov r9, r13
lea rdx, [rsp + 0x68]
mov rcx, rsi
lea r8, [rax + 1]
call fcn.1400b69b0
mov r9, qword [rsp + 0x78]
lea rdx, [rsp + 0x68]
mov r11, qword [rsp + 0x80]
mov r8, rbx
mov r10, qword [rsp + 0x68]
cmp r11, 8
cmovae rdx, r10
cmp r9, rbx
cmovb r8, r9
test r8, r8
je 0x1401021f6
lea rcx, [0x1402061c8]
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rdx], ax
jne 0x14010223c
add rdx, 2
add rcx, 2
sub r8, 1
jne 0x1401021e0
mov r8d, edi
test r8d, r8d
jne 0x140102203
cmp r9, rbx
je 0x140102261
cmp r11, 8
lea rdx, [rsp + 0x68]
cmovae rdx, r10
cmp r9, rbx
cmovb rbx, r9
test rbx, rbx
je 0x140102257
lea r8, [0x1402061d0]
movzx eax, word [r8]
cmp word [rdx], ax
jne 0x14010224b
add rdx, 2
add r8, 2
sub rbx, 1
jne 0x140102223
jmp 0x140102257
cmp word [rdx], ax
mov r8d, 1
cmovb r8d, r13d
jmp 0x1401021f9
cmp word [rdx], ax
mov edi, 1
cmovb edi, r13d
test edi, edi
jne 0x140102269
cmp r9, 3
jne 0x140102269
mov r8d, 2
jmp 0x140102270
or rbp, 1
mov r8, rbp
mov rcx, qword [r14 + 8]
lea r9, [rsp + 0x48]
mov edx, 0x449
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov edx, 0xb9
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, r14
call fcn.140101bb0
mov rcx, qword [r14 + 8]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
test rcx, rcx
je 0x1401022d8
mov r9d, r15d
xor r8d, r8d
mov edx, 0x445
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8, qword [rsp + 0x80]
test rbx, rbx
setne bl
cmp r8, 8
jb 0x1401022fe
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
inc r8
call fcn.140003900
movzx eax, bl
mov rbx, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140185a60
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
ret