Function at 0x140081990
Capabilities:
Get file size
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401d3050]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rcx
mov ebx, 1
mov dword [rcx + 8], ebx
lea rax, [0x140130100]
mov qword [rcx], rax
lea rax, [rcx + 0x10]
xor r13d, r13d
mov qword [rcx + 0x20], r13
mov qword [rcx + 0x28], r13
movups xmm0, xmmword [rdx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rdx], r13b
lea r15, [rcx + 0x30]
mov qword [r15], r13
mov qword [r15 + 8], r13
lea r12, [rcx + 0x40]
mov qword [r12], r13
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140081a24
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x51], rcx
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x19]
call fcn.14002e730
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x39]
call fcn.14002218c
cmp byte [rbp - 0x19], r13b
je 0x140081a64
xor edx, edx
lea rcx, [rbp - 0x11]
call fcn.140004864
nop
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r8d, ebx
mov edx, 0x80000000
call fcn.14003b1bc
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140081d15
lea rdx, [rbp - 0x59]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140081d25
cmp dword [rbp - 0x55], r13d
jne 0x140081d35
mov eax, dword [rbp - 0x59]
mov qword [rsi + 0x50], rax
test rax, rax
je 0x140081b67
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
je 0x140081d45
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov r14, rax
lea rcx, [rbp - 0x51]
cmp r15, rcx
je 0x140081b40
mov r14, r13
mov rcx, qword [r15 + 8]
mov qword [r15 + 8], rax
test rcx, rcx
je 0x140081b36
mov rax, qword [r15]
call qword [case.0x140007d11.0]
nop
lea rax, [fcn.140081dc0]
mov qword [r15], rax
test r14, r14
je 0x140081b4e
mov rcx, r14
call fcn.140081dc0
nop
cmp qword [rsi + 0x38], r13
je 0x140081d55
test rbx, rbx
je 0x140081b67
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 0x70
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401e3680], eax
jg 0x140081d65
mov r8, qword [rsi + 0x50]
mov ecx, dword [0x1401e3684]
xor edx, edx
mov rax, r8
div rcx
test rdx, rdx
je 0x140081bb5
mov rax, qword [rsi + 0x38]
mov qword [rsi + 0x48], rax
cmp byte [rax + r8], r13b
jne 0x140081d02
jmp 0x140081c86
cmp r8, 0xffffffffffffffff
jae 0x140081da2
lea rbx, [r8 + 1]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140081cf9
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rbx, r14
lea rax, [rbp - 0x51]
cmp r12, rax
je 0x140081c0a
mov rbx, r13
mov rcx, qword [r12]
mov qword [r12], r14
test rcx, rcx
je 0x140081c19
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, r13
test r14, r14
je 0x140081c19
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x1401d3d78]
lea rcx, [0x1401d3d78]
mov rax, qword [rax + 8]
cmp qword [rsi + 0x50], r13
jne 0x140081c3e
mov edx, 0x26e349d
call qword [case.0x140007d11.0]
jmp 0x140081c5b
mov edx, 0x26e349e
call qword [case.0x140007d11.0]
mov r8, qword [rsi + 0x50]
mov rdx, qword [rsi + 0x38]
mov rcx, qword [r12]
call sub.VCRUNTIME140.dll_memcpy
nop
mov rcx, qword [r12]
mov rax, qword [rsi + 0x50]
mov byte [rcx + rax], r13b
mov rax, qword [r12]
mov qword [rsi + 0x48], rax
mov rcx, qword [r15 + 8]
mov qword [r15 + 8], r13
test rcx, rcx
je 0x140081c86
mov rax, qword [r15]
call qword [case.0x140007d11.0]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x21]
cmp rax, 8
jb 0x140081ccf
mov rcx, qword [rbp - 0x39]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140081cc8
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140081cc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, rsi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140118d00
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400ecb00
nop
jmp 0x140081d01
nop
xor edx, edx
mov ecx, 0x26e349b
call fcn.140007884
nop
jmp 0x140081d14
nop
xor edx, edx
mov ecx, 0x26e3495
call fcn.140007884
nop
jmp 0x140081d24
nop
xor edx, edx
mov ecx, 0x26e3496
call fcn.140007884
nop
jmp 0x140081d34
nop
xor edx, edx
mov ecx, 0x26e3497
call fcn.140007884
nop
jmp 0x140081d44
nop
xor edx, edx
mov ecx, 0x26e3498
call fcn.140007884
nop
jmp 0x140081d54
nop
xor edx, edx
mov ecx, 0x26e349a
call fcn.140007884
nop
jmp 0x140081d64
nop
lea rcx, [0x1401e3680]
call fcn.14011955c
cmp dword [0x1401e3680], 0xffffffff
jne 0x140081b87
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x15]
mov dword [0x1401e3684], eax
lea rcx, [0x1401e3680]
call fcn.1401194fc
jmp 0x140081b87
xor edx, edx
mov ecx, 0x26e349c
call fcn.140007884
nop
jmp 0x140081db2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop