Function at 0x14002b930
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.140034560
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x10e0], rbx
mov rax, qword [0x14006c270]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rbx, rdx
mov r12, rcx
mov qword [rsp + 0x68], rcx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [0x14004c990]
test rdx, 0xffffffffffff0000
jne 0x14002b9d3
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.140001200
test rax, rax
je 0x14002b9e1
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005520
jmp 0x14002b9e1
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.140005390
nop
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x40], rsi
lea rdx, [0x140050fe2]
test rdx, 0xffffffffffff0000
jne 0x14002ba2e
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.140001200
test rax, rax
je 0x14002ba40
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14002afc0
jmp 0x14002ba3b
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.14002b100
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x14002bad1
mov rdi, qword [rsp + 0x58]
lea rcx, [rdi - 0x18]
call fcn.1400026f0
add rax, 0x18
mov qword [r12], rax
lea rdx, [rsi - 0x18]
or r14, 0xffffffffffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002baad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [rdi - 8], r14d
dec r14d
test r14d, r14d
jg 0x14002bac9
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r12
jmp 0x14002be62
or r14, 0xffffffffffffffff
nop word [rax + rax]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002bd40
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rcx, [rbp - 0x80]
lea rax, [rbp - 0x80]
test rax, 0xffffffffffff0000
jne 0x14002bb5e
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.140001200
test rax, rax
je 0x14002bc3c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14002afc0
mov rbx, qword [rsp + 0x48]
jmp 0x14002bc3c
xor eax, eax
mov rcx, r14
lea rdi, [rbp - 0x80]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14002bbcf
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002bc3c
cmp dword [rdx + 0x10], eax
jge 0x14002bb9f
cmp dword [rbx - 0xc], eax
jl 0x14002bd4f
mov dword [rbx - 0x10], r15d
mov byte [rbx], al
jmp 0x14002bc3c
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002bbb6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov rsi, qword [rsp + 0x40]
jmp 0x14002bc3c
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x80]
sub r12, rbx
test ecx, ecx
js 0x14002bda7
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002bc04
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.14002ab30
mov rbx, qword [rsp + 0x48]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp r12, r13
movsxd r13, edi
mov r9, r13
ja 0x14002bc21
lea r8, [r12 + rbx]
call fcn.1400345b0
jmp 0x14002bc2a
lea r8, [rbp - 0x80]
call fcn.1400340dc
cmp edi, dword [rbx - 0xc]
jg 0x14002bd9c
mov dword [rbx - 0x10], edi
mov byte [r13 + rbx], 0
movsxd rdi, dword [rsp + 0x50]
test edi, edi
js 0x14002bd91
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002bc6b
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.14002ab30
mov rbx, qword [rsp + 0x48]
cmp edi, dword [rbx - 0xc]
jg 0x14002bd86
mov dword [rbx - 0x10], edi
mov byte [rdi + rbx], 0
movsxd rcx, dword [rbx - 0x10]
mov r12, rbx
sub r12, rsi
mov r13d, dword [rsi - 0x10]
mov eax, r15d
test ecx, ecx
setns al
test eax, eax
je 0x14002bd7b
mov rdx, rcx
mov rcx, rbx
call fcn.1400362c0
mov r15, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor edx, edx
cmp ecx, r13d
setge dl
test edx, edx
je 0x14002bd70
lea edi, [r13 + rax]
test edi, edi
js 0x14002bd65
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002bced
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14002ab30
mov rsi, qword [rsp + 0x40]
cmp r12, r13
lea r8, [r12 + rsi]
jbe 0x14002bcf9
mov r8, rbx
movsxd rdx, r15d
lea rcx, [r13 + rsi]
mov r9, rdx
call fcn.1400340dc
cmp edi, dword [rsi - 0xc]
jg 0x14002bd5a
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov byte [rax + rsi], 0
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002bd33
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x60]
xor r15d, r15d
mov rsi, qword [rsp + 0x40]
cmp dword [rsp + 0x50], 0x1000
jne 0x14002bdb2
jmp 0x14002bae0
mov ecx, 0x80070057
call fcn.140001050
nop
mov ecx, 0x80070057
call fcn.140001050
int3
mov ecx, 0x80070057
call fcn.140001050
int3
mov ecx, 0x80070057
call fcn.140001050
int3
mov ecx, 0x80070057
call fcn.140001050
int3
mov ecx, 0x80070057
call fcn.140001050
int3
mov ecx, 0x80070057
call fcn.140001050
nop
mov ecx, 0x80070057
call fcn.140001050
int3
mov ecx, 0x80070057
call fcn.140001050
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsi - 8], 1
jle 0x14002bdd3
mov edx, dword [rsi - 0x10]
lea rcx, [rsp + 0x40]
call fcn.14002aa80
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14002a660
mov rbx, rax
test rax, rax
je 0x14002bdf5
xor eax, eax
mov rcx, r14
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r15d, [rcx - 1]
mov r8d, r15d
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140005390
mov rcx, rbx
call fcn.140034b6c
mov rdi, qword [rsp + 0x58]
lea rcx, [rdi - 0x18]
call fcn.1400026f0
add rax, 0x18
mov rbx, qword [rsp + 0x68]
mov qword [rbx], rax
lea rdx, [rsi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002be43
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [rdi - 8], r14d
dec r14d
test r14d, r14d
jg 0x14002be5f
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.140034530
mov rbx, qword [rsp + 0x10e0]
add rsp, 0x1090
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret