Function at 0x140003da0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x14002e010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbp, r9
mov qword [rsp + 0x40], rdx
xor r15d, r15d
mov rsi, r8
mov r14, rdx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 4
lea r8d, [r15 + 7]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003f7b
mov qword [rsp + 0x1c0], rdi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x188], r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x14000419a
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
mov r12, rax
test rax, rax
je 0x14000419a
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140004191
cmp dword [rsp + 0x68], edi
jne 0x140004191
mov rcx, rbx
mov qword [rsp + 0x180], r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [r14 + 8]
lea ecx, [r15 + 3]
mov r9d, edi
mov qword [rsp + 0x28], r15
mov r8, r12
mov dword [rsp + 0x20], 3
mov edx, 0x10001
call rax
mov r13, rax
test rax, rax
je 0x140003f5a
mov rcx, qword [rax + 0x18]
lea rdx, str.1.3.6.1.4.1.311.12.1.2
mov rbx, qword [rcx + 0x48]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140003ee4
lea rdx, str.1.3.6.1.4.1.311.12.1.3
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140003f5a
lea r15d, [rax + 1]
mov ecx, dword [rsi]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x50], 0
cmp ecx, dword [rsi + 4]
jne 0x140003f31
mov eax, ecx
mov ebx, 0xa
shr eax, 1
add eax, ecx
test ecx, ecx
cmovne ebx, eax
mov eax, 8
mov ecx, ebx
mul rcx
mov rcx, qword [rsi + 8]
cmovo rax, r8
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x140003f53
mov qword [rsi + 8], rax
mov dword [rsi], ebx
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rcx, qword [rsi + 8]
mov edx, dword [rsi + 4]
mov qword [rcx + rdx*8], rax
mov ecx, dword [rsi + 4]
mov rax, qword [rsi + 8]
cmp qword [rax + rcx*8], 0
jne 0x140003f9a
mov rcx, r13
call qword [r14 + 0x10]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r13, qword [rsp + 0x180]
mov rdi, qword [rsp + 0x1c0]
mov r12, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140009310
add rsp, 0x190
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
lea eax, [rcx + 1]
mov rbx, r14
mov dword [rsi + 4], eax
lea r8, [rsp + 0x58]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, r13
mov rax, qword [rbx + 0x18]
call rax
test eax, eax
je 0x140004186
mov r12, 0xffffffffffffffff
nop dword [rax + rax]
mov edi, dword [rsp + 0x58]
test r15d, r15d
jne 0x140003fdc
shr edi, 2
mov r14d, edi
cmp edi, 0x100
jb 0x140003ffe
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x14000415e
jmp 0x140004003
lea rbp, [rsp + 0x70]
test r15d, r15d
jne 0x140004099
xor r9d, r9d
test edi, edi
je 0x1400040a9
mov r10, rbp
nop word [rax + rax]
mov r8, qword [rsp + 0x60]
lea edx, [r9*4]
movzx eax, byte [rdx + r8]
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x140004050
lea ecx, [rax - 0x41]
cmp cl, 5
ja 0x140004046
add al, 0xc9
jmp 0x140004050
lea ecx, [rax - 0x61]
cmp cl, 5
ja 0x140004050
add al, 0xa9
lea ecx, [rdx + 2]
movzx r8d, byte [rcx + r8]
lea ecx, [r8 - 0x30]
cmp cl, 9
ja 0x140004067
movzx r8d, cl
jmp 0x140004083
lea ecx, [r8 - 0x41]
cmp cl, 5
ja 0x140004076
add r8b, 0xc9
jmp 0x140004083
lea ecx, [r8 - 0x61]
cmp cl, 5
ja 0x140004083
add r8b, 0xa9
shl al, 4
inc r9d
add al, r8b
mov byte [r10], al
inc r10
cmp r9d, edi
jb 0x140004020
jmp 0x1400040a9
mov rdx, qword [rsp + 0x60]
mov r8, r14
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14]
jne 0x1400040f2
test eax, eax
je 0x1400040bd
mov ebx, eax
shr ebx, 1
add ebx, eax
jmp 0x1400040c2
mov ebx, 0xa
mov ecx, ebx
mov eax, 0x10
mul rcx
mov rcx, qword [rsi + 0x18]
cmovo rax, r12
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14000417c
mov dword [rsi + 0x10], ebx
mov rbx, qword [rsp + 0x40]
mov qword [rsi + 0x18], rax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [rsi + 0x14]
mov rcx, qword [rsi + 0x18]
add rdx, rdx
mov qword [rcx + rdx*8], rax
mov ecx, dword [rsi + 0x14]
mov rax, qword [rsi + 0x18]
add rcx, rcx
mov rcx, qword [rax + rcx*8]
test rcx, rcx
je 0x14000417c
mov r8, r14
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsi + 0x14]
mov rax, qword [rsi + 0x18]
add rcx, rcx
mov dword [rax + rcx*8 + 8], edi
mov ecx, dword [rsi + 0x14]
mov rax, qword [rsi + 0x18]
add rcx, rcx
mov edx, dword [rsi + 4]
dec edx
mov dword [rax + rcx*8 + 0xc], edx
lea rax, [rsp + 0x70]
inc dword [rsi + 0x14]
cmp rbp, rax
je 0x14000415e
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbx + 0x18]
lea r8, [rsp + 0x58]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, r13
call rax
test eax, eax
jne 0x140003fd0
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, r13
call qword [rbx + 0x10]
jmp 0x140003f5a
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003f6b