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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x18008a300]
xor rax, rsp
mov qword [rbp + 0x110], rax
movzx ebx, byte [rsp + 0x40]
lea eax, [rcx + 0x990]
mov qword [rsp + 0x60], r8
mov r14, rdx
mov qword [rbp - 0x68], rdx
mov r13d, ecx
mov dword [rsp + 0x44], eax
cmp ecx, eax
jae case.0x180046673.5
mov r15d, dword [rsp + 0x5c]
movzx r12d, byte [rsp + 0x40]
xor edi, edi
lea rdx, [0x180000000]
cmp r13d, 0x342
ja 0x1800466cb
je 0x180046974
cmp r13d, 0x14c
ja 0x180046608
je 0x1800465e8
mov eax, r13d
sub eax, 0x2c
je 0x180046550
sub eax, 0x89
je 0x180046479
sub eax, 7
je 0x180046463
cmp eax, 0x46
jne 0x180046970
cmp qword [r8 + 0x18], 8
mov rcx, r8
jb 0x18004642e
mov rcx, qword [r8]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x78], rax
mov byte [rsp + 0x40], 1
jmp 0x180046970
mov rcx, qword [0x18008af98]
mov edx, 0xd9
call fcn.18000e020
jmp 0x180046970
lea rax, [r14 + 0xf8]
lea rcx, [r8 + 0xf8]
cmp r8, rax
ja 0x1800464ec
cmp rcx, r14
jb 0x1800464ec
mov rcx, r14
lea rax, [r8 + 8]
sub rcx, r8
mov edx, 8
movsd xmm0, qword [rcx + rax - 8]
subsd xmm0, qword [rax - 8]
movsd qword [rax - 8], xmm0
movsd xmm1, qword [rax + rcx]
subsd xmm1, qword [rax]
movsd qword [rax], xmm1
movsd xmm0, qword [rcx + rax + 8]
subsd xmm0, qword [rax + 8]
movsd qword [rax + 8], xmm0
movsd xmm1, qword [rax + rcx + 0x10]
subsd xmm1, qword [rax + 0x10]
movsd qword [rax + 0x10], xmm1
add rax, 0x20
sub rdx, 1
jne 0x1800464a0
jmp 0x180046970
mov rcx, r14
lea rax, [r8 + 0x10]
sub rcx, r8
mov edx, 4
nop dword [rax + rax]
movups xmm0, xmmword [rax - 0x10]
movups xmm1, xmmword [rcx + rax - 0x10]
movups xmm2, xmmword [rcx + rax]
subpd xmm1, xmm0
movups xmmword [rax - 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rcx + rax + 0x10]
subpd xmm2, xmm0
movups xmmword [rax], xmm2
movups xmm0, xmmword [rax + 0x10]
subpd xmm1, xmm0
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmm1, xmmword [rcx + rax + 0x20]
subpd xmm1, xmm0
movups xmmword [rax + 0x20], xmm1
add rax, 0x40
sub rdx, 1
jne 0x180046500
jmp 0x180046970
xor esi, esi
mov rdi, r14
cmp qword [r14 + 8], rsi
je 0x180046970
mov r14, qword [rsp + 0x60]
mov dword [rsp + 0x70], 1
nop dword [rax]
mov eax, dword [r14]
lea r8, [rsp + 0x50]
mov r9, qword [rdi]
dec eax
mov edx, 0x60
mov dword [rsp + 0x50], eax
xor ecx, ecx
call fcn.1800385e0
lea r8, [rsp + 0x70]
mov edx, 0x2c
mov rcx, rax
call fcn.18003a840
mov ecx, esi
mov dword [rsp + 0x50], 0
imul ecx, dword [r14]
lea r9, [rsp + 0x50]
mov r8d, 0x105
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], ecx
mov rcx, qword [0x18008af98]
call fcn.180035650
inc esi
lea rdi, [rdi + 0x18]
cmp qword [rdi + 8], 0
jne 0x180046570
mov r14, qword [rbp - 0x68]
jmp 0x180046970
mov r8, qword [0x18008af98]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 0xc7
xor ecx, ecx
call fcn.18001f350
jmp 0x180046970
cmp r13d, 0x192
je 0x18004665b
cmp r13d, 0x222
je 0x180046652
cmp r13d, 0x2b2
jne 0x180046974
mov rcx, qword [rbp - 0x78]
xorps xmm0, xmm0
xor edx, edx
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x48], eax
mov dword [rbp - 0x30], 0x30
jmp 0x180046970
mov dword [rsp + 0x58], edi
jmp 0x180046974
cmp qword [rbp - 0x78], 0xffffffffffffffff
jne 0x1800466bf
cmp edi, 5
ja case.0x180046673.0
mov eax, edi
mov ecx, dword [rdx + rax*4 + 0x469a8]
add rcx, rdx
jmp rcx
mov qword [rbp - 0x50], 0
mov dword [rbp - 0x7c], 0xffffffff
jmp case.0x180046673.0
mov dword [rbp - 0x80], 0x104
jmp case.0x180046673.0
mov r9d, dword [rbp - 0x80]
lea r8, [rbp]
mov edx, dword [rbp - 0x7c]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.SHELL32.dll_DragQueryFileA]
lea rdx, [0x180000000]
jmp case.0x180046673.0
xor bl, bl
inc edi
lea eax, [rdi + 0x7c]
cmp eax, 0x82
jb 0x180046662
mov eax, dword [rsp + 0x44]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
jmp 0x180046974
cmp r13d, 0x612
ja 0x1800468fb
je 0x180046758
cmp r13d, 0x3d2
je 0x18004674f
cmp r13d, 0x462
je 0x180046736
cmp r13d, 0x4f2
jne 0x180046974
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x180046706
mov rdx, qword [r14]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x58]
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbp - 0x78]
mov qword [rbp - 0x48], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180046970
mov edx, dword [rsp + 0x48]
xor r8d, r8d
mov rcx, r14
call fcn.180046de0
mov qword [rsp + 0x68], rdi
jmp 0x180046970
mov dword [rsp + 0x5c], edi
jmp 0x180046974
mov r8d, dword [rsp + 0x5c]
lea r9, [rsp + 0x68]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x40]
call sub.ADVAPI32.dll_LsaOpenPolicy
mov eax, dword [rsp + 0x48]
cmp eax, dword [rsp + 0x58]
je 0x1800468e4
mov esi, 0xb4
mov eax, esi
sub eax, 0xb4
je 0x1800468ce
sub eax, 1
je 0x1800468c4
sub eax, 1
je 0x18004689b
sub eax, 1
je 0x18004680c
cmp eax, 1
jne 0x1800468d6
test r12b, r12b
je 0x1800469a1
mov ebx, 0xea
nop dword [rax]
cmp ebx, 0xea
je 0x18004698a
cmp ebx, 0x2664
jne 0x18004698f
lea r8, [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesDecodeIncrementalHandleCreate
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1800467f4
call sub.RPCRT4.dll_MesHandleFree
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18004698f
call sub.RPCRT4.dll_MesHandleFree
jmp 0x18004698f
movzx eax, byte [rsp + 0x41]
lea r9, [rbp - 0x58]
mov ecx, edi
test r15d, r15d
cmove ecx, eax
xor r8d, r8d
mov byte [rsp + 0x41], cl
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesEncodeIncrementalHandleCreate
test eax, eax
movzx r12d, r12b
cmovne r12d, edi
cmp byte [rsp + 0x41], 0
je 0x1800468d6
mov edi, 0x73
xor r14d, r14d
nop word [rax + rax]
cmp edi, 0x73
je 0x180046863
cmp edi, 0x2788
jne 0x180046885
mov rcx, qword [rbp - 0x70]
jmp 0x18004687b
lea r8, [rbp - 0x70]
mov qword [rbp - 0x70], r14
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesDecodeIncrementalHandleCreate
mov rcx, qword [rbp - 0x60]
mov r15d, eax
test rcx, rcx
je 0x180046885
call sub.RPCRT4.dll_MesHandleFree
add edi, 0x2715
cmp edi, 0x4e2a
jbe 0x180046850
mov r14, qword [rbp - 0x68]
xor edi, edi
jmp 0x1800468d6
mov qword [r14 + 0x10], rdi
mov rax, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1800468ac
mov rax, qword [r14]
lea r9, [rbp - 0x60]
mov byte [rax], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesEncodeIncrementalHandleCreate
mov r15d, eax
jmp 0x1800468d6
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rdi
jmp 0x1800468d6
mov byte [rsp + 0x41], 1
mov r12b, 1
inc esi
cmp esi, 0xb9
jb 0x180046782
cmp qword [rsp + 0x68], 0
mov eax, dword [rsp + 0x44]
jne 0x180046974
mov byte [rsp + 0x40], 0
jmp 0x180046974
cmp r13d, 0x6a2
je 0x180046947
cmp r13d, 0x732
je 0x180046943
cmp r13d, 0x7c2
jne 0x180046974
movzx eax, bl
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18006b180
mov rbx, qword [rsp + 0x260]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov bl, 1
jmp 0x180046974
cmp byte [rsp + 0x40], 0
je 0x180046974
mov r9, qword [rbp - 0x48]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x68]
mov r8d, 7
call sub.ADVAPI32.dll_LsaSetTrustedDomainInfoByName
mov rcx, qword [rsp + 0x68]
call sub.ADVAPI32.dll_LsaClose
mov eax, dword [rsp + 0x44]
add r13d, 0x90
cmp r13d, eax
jae case.0x180046673.5
mov r8, qword [rsp + 0x60]
jmp 0x1800463d1
mov qword [rsp + 0x60], rdi
add ebx, 0x257a
cmp ebx, 0x4af4
jbe 0x1800467c0
xor al, al
jmp 0x180046919