Function at 0x14004add0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x14008b5a0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r13, rdx
mov r12, rcx
xor r15d, r15d
xor edx, edx
xor ecx, ecx
mov rbx, r8
mov ebp, r15d
mov dword [rsp + 0xc0], 0xaac56b
mov word [rsp + 0xc4], 0xcd44
mov word [rsp + 0xc6], 0x11d0
mov byte [rsp + 0xc8], 0x8c
mov byte [rsp + 0xc9], 0xc2
mov byte [rsp + 0xca], 0
mov byte [rsp + 0xcb], 0xc0
mov byte [rsp + 0xcc], 0x4f
mov byte [rsp + 0xcd], 0xc2
mov byte [rsp + 0xce], reloc.OLEAUT32.dll_SysAllocStringByteLen
mov byte [rsp + 0xcf], 0xee
xor sil, sil
call fcn.14003cb00
lea r14, [0x140080018]
cmp eax, 0x1770
jge 0x14004aed2
lea r8, [rsp + 0xb0]
lea edx, [r15 + 4]
mov rcx, r12
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x38], r15d
call fcn.140045460
test al, al
jne 0x14004b07d
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004aed2
test byte [rcx + 0x3c], 1
je 0x14004aed2
cmp byte [rcx + 0x39], 5
jb 0x14004aed2
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x2a
call fcn.1400249f0
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], 0x20
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r15
call fcn.14004a870
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x88], rax
mov rax, qword [0x14008d4a8]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x80], 1
mov dword [rsp + 0xa8], 0x1010
call qword [rax + 0x30]
cmp eax, 0x800b0101
jg 0x14004b37c
cmp eax, 0x800b0101
je 0x14004b3a4
cmp eax, 0x80092026
je 0x14004b3a4
cmp eax, 0x80096001
je 0x14004b33c
cmp eax, 0x800b0003
je 0x14004b2a1
cmp eax, 0x800b0004
je 0x14004b266
cmp eax, 0x800b0100
je 0x14004b2a1
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004afc7
test byte [rcx + 0x3c], 1
je 0x14004afc7
cmp byte [rcx + 0x39], 5
jb 0x14004afc7
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov r9, r13
mov dx, 0x38
mov dword [rsp + 0x20], eax
call fcn.14003b600
cmp qword [rsp + 0x98], r15
je 0x14004b058
mov rax, qword [0x14008d4a8]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xb0]
xor ecx, ecx
mov dword [rsp + 0xb0], 0xaac56b
mov word [rsp + 0xb4], 0xcd44
mov word [rsp + 0xb6], 0x11d0
mov byte [rsp + 0xb8], 0x8c
mov byte [rsp + 0xb9], 0xc2
mov byte [rsp + 0xba], r15b
mov byte [rsp + 0xbb], 0xc0
mov byte [rsp + 0xbc], 0x4f
mov byte [rsp + 0xbd], 0xc2
mov byte [rsp + 0xbe], reloc.OLEAUT32.dll_SysAllocStringByteLen
mov byte [rsp + 0xbf], 0xee
mov dword [rsp + 0x90], 2
call qword [rax + 0x30]
mov eax, ebp
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14004c890
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
cmp dword [rsp + 0xb4], ebp
jne 0x14004b0c3
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004aed2
test byte [rcx + 0x3c], 1
je 0x14004aed2
cmp byte [rcx + 0x39], 5
jb 0x14004aed2
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x2b
call fcn.1400249f0
jmp 0x14004aed2
mov edx, dword [rsp + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x178], rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [rsp + 0xb4]
call fcn.14004c8b0
test rax, rax
mov rdi, rax
jne 0x14004b132
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b239
test byte [rcx + 0x3c], 1
je 0x14004b239
cmp byte [rcx + 0x39], 5
jb 0x14004b239
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x2c
call fcn.1400249f0
jmp 0x14004b239
mov r8d, dword [rsp + 0xb4]
lea r9, [rsp + 0x34]
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004b191
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b239
test byte [rcx + 0x3c], 1
je 0x14004b239
cmp byte [rcx + 0x39], 5
jb 0x14004b239
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x2d
call fcn.1400249f0
jmp 0x14004b239
mov edx, dword [rsp + 0x34]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov r9d, 0x40
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14005e5b0
test al, al
movzx ebp, al
je 0x14004b20d
mov r9d, dword [rsp + 0x30]
mov eax, r9d
and eax, 0xf0000
je 0x14004b239
cmp eax, 0x10000
je 0x14004b239
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b208
test byte [rcx + 0x3c], 1
je 0x14004b208
cmp byte [rcx + 0x39], 5
jb 0x14004b208
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x2e
call fcn.14003b5c0
mov sil, 1
jmp 0x14004b239
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b239
test byte [rcx + 0x3c], 1
je 0x14004b239
cmp byte [rcx + 0x39], 5
jb 0x14004b239
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x2f
call fcn.1400249f0
test rdi, rdi
je 0x14004b246
mov rcx, rdi
call fcn.14004ca6c
test sil, sil
mov rdi, qword [rsp + 0x178]
je 0x14004aed2
mov dword [rbx + 0x824], 1
jmp 0x14004b058
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b292
test byte [rcx + 0x3c], 1
je 0x14004b292
cmp byte [rcx + 0x39], 5
jb 0x14004b292
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x37
call fcn.1400249f0
mov dword [rbx + 0x824], 1
jmp 0x14004afc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x800b0100
je 0x14004b2fa
cmp eax, 0x800b0003
je 0x14004b2fa
cmp eax, 0x800b0001
je 0x14004b2fa
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b32d
test byte [rcx + 0x3c], 1
je 0x14004b32d
cmp byte [rcx + 0x39], 5
jb 0x14004b32d
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov r9, r13
mov dx, 0x35
call fcn.1400012a0
mov dword [rbx + 0x824], 1
jmp 0x14004afc7
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b32d
test byte [rcx + 0x3c], 1
je 0x14004b32d
cmp byte [rcx + 0x39], 5
jb 0x14004b32d
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov r9, r13
mov dx, 0x34
mov dword [rsp + 0x20], eax
call fcn.14003b600
mov dword [rbx + 0x824], 1
jmp 0x14004afc7
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b368
test byte [rcx + 0x3c], 1
je 0x14004b368
cmp byte [rcx + 0x39], 5
jb 0x14004b368
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x33
call fcn.1400249f0
mov dword [rbx + 0x820], 0xffffffff
mov ebp, 1
jmp 0x14004afc7
cmp eax, 0x800b0109
jl 0x14004af94
cmp eax, 0x800b010a
jle 0x14004b3a4
cmp eax, 0x800b010e
je 0x14004b3a4
cmp eax, 0x800b0111
je 0x14004b3c5
test eax, eax
jne 0x14004af94
test eax, eax
mov dword [rbx + 0x824], r15d
jne 0x14004b400
mov dword [rbx + 0x824], 0x10
mov rcx, qword [0x140080018]
jmp 0x14004b483
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b3f1
test byte [rcx + 0x3c], 1
je 0x14004b3f1
cmp byte [rcx + 0x39], 5
jb 0x14004b3f1
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x36
call fcn.1400249f0
mov dword [rbx + 0x824], 1
jmp 0x14004afc7
cmp eax, 0x800b0109
jne 0x14004b440
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b4b8
test byte [rcx + 0x3c], 1
je 0x14004b483
cmp byte [rcx + 0x39], 5
jb 0x14004b483
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x30
call fcn.1400249f0
mov rcx, qword [0x140080018]
jmp 0x14004b483
cmp eax, 0x800b010a
jne 0x14004b47c
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b4b8
test byte [rcx + 0x3c], 1
je 0x14004b483
cmp byte [rcx + 0x39], 5
jb 0x14004b483
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
mov dx, 0x31
call fcn.1400249f0
mov rcx, qword [0x140080018]
jmp 0x14004b483
mov rcx, qword [0x140080018]
cmp rcx, r14
je 0x14004b4b8
test byte [rcx + 0x3c], 1
je 0x14004b4b8
cmp byte [rcx + 0x39], 5
jb 0x14004b4b8
mov eax, dword [rbx + 0x824]
mov rcx, qword [rcx + 0x30]
lea r8, [0x1400714b0]
and eax, 0x10
mov r9, r13
mov dx, 0x32
mov dword [rsp + 0x20], eax
call fcn.14003b600
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov rdx, rbx
call fcn.14004aab0
mov ebp, 1
jmp 0x14004afc7