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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x280
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rax, qword [0x180110318]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r10, qword [rbp + 0x1e0]
lea r14d, [rdx + 0x18]
mov r11, qword [rsp + 0x40]
mov r13, r8
mov qword [rsp + 0x70], r9
mov r12, rcx
mov dword [rsp + 0x48], edx
mov r8d, edx
mov qword [rsp + 0x50], r10
mov esi, edx
mov qword [rsp + 0x60], r11
lea rcx, [0x180000000]
cmp edx, r14d
jae 0x180046d7a
movsd xmm6, qword [rbp - 0x48]
lea edi, [rdx - 0x2e]
movups xmm7, xmmword [rbp - 0x58]
mov ebx, dword [rbp - 0x80]
lea rdx, [0x180012b30]
mov r15, qword [rsp + 0x40]
mov r8d, 4
xorps xmm8, xmm8
cmp edi, 0xe7
ja case.default.0x180046906
movzx eax, byte [rcx + rdi + 0x4734c]
mov ecx, dword [rcx + rax*4 + 0x472e8]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov dword [r11 + 0x4021c], 2
mov dword [r11 + 0x40230], 0xffffffff
jmp case.0x180046906.24
movsd xmm0, qword [str._lvm]
movabs rax, 0x650068002e
movsd qword [rbp], xmm0
mov qword [rbp + 8], rax
jmp case.0x180046906.24
test ebx, ebx
je case.0x180046906.24
nop dword [rax + rax]
mov eax, ebx
jmp 0x180046ee2
mov rax, qword [r10]
lea r8, [rsp + 0x40]
mov edx, 0x5b
lea rcx, [0x1801084e4]
mov r15, qword [rax + 0x58]
mov rax, qword [r15 + 0x68]
mov qword [rsp + 0x40], rax
call fcn.180060140
test eax, eax
jne 0x180046de0
mov r10, qword [rsp + 0x50]
mov r9, qword [rsp + 0x70]
lea rdx, [0x180012b30]
mov r11, qword [rsp + 0x60]
mov r8d, 4
jmp case.0x180046906.24
mov rax, qword [r10]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov edx, 0xce
xor ecx, ecx
call fcn.18002d060
test eax, eax
jne 0x180046ee2
jmp 0x180046985
lea rdx, [r11 + 0x4011c]
mov r9d, 0x153
lea rcx, [r11 + 0x4019b]
lea r8, str.Adobe
call fcn.18004d390
jmp 0x180046985
mov r8d, 3
lea rdx, [0x1801084e8]
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
movabs rax, 0x2e006e006f
mov qword [rbp + 0x14], rax
jmp 0x180046985
lea rcx, [rbp]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180046a20
mov eax, dword [0x1801084f0]
mov dword [rcx], eax
movzx eax, word [0x1801084f4]
mov word [rcx + 4], ax
jmp case.0x180046906.24
mov qword [r11 + 0x40220], rdx
jmp case.0x180046906.24
mov word [r15 + 0x58], r8w
jmp case.0x180046906.24
mov rax, qword [r10]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rcx, [0x18009a4b0]
lea edx, [r9 + 0x72]
call fcn.18002a760
jmp 0x180046985
mov rax, qword [r10]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea edx, [r9 + 0x31]
call fcn.180022fa0
test eax, eax
je 0x180046e12
lea rax, [0x18008adb0]
mov edx, 0x27
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x68]
mov rax, qword [rsp + 0x50]
lea r8, str.UTF_8
mov rax, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rbp - 0x68], rcx
lea rcx, [rsp + 0x40]
call fcn.18007ce80
mov qword [rsp + 0x78], rax
jmp 0x180046985
xor eax, eax
movups xmmword [r15 + 0x40], xmm7
mov qword [r15 + 0x38], rax
movsd qword [r15 + 0x50], xmm6
jmp case.0x180046906.24
mov rax, qword [r10]
lea r8, [rsp + 0x40]
mov edx, 0xc9
mov qword [rsp + 0x40], rax
mov rcx, qword [rax + 0xd0]
mov qword [rsp + 0x60], rcx
lea rcx, [0x1800b9530]
call fcn.180076df0
test eax, eax
je 0x180046985
mov edx, 0x39
nop
cmp edx, 0x39
je 0x180046b48
cmp edx, 0x18b7
je case.0x18004717c.6
mov r10, qword [rsp + 0x50]
jmp 0x180046b5d
mov r10, qword [rsp + 0x50]
mov rax, qword [r10]
mov rcx, qword [rax + 0x90]
mov eax, dword [rcx]
mov dword [rsp + 0x58], eax
add edx, 0x187e
cmp edx, 0x30fc
jbe 0x180046b30
jmp 0x18004698a
lea rax, [0x180014380]
mov rdx, r10
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
mov eax, dword [r12]
mov ecx, 0x105
mov dword [rbp - 0x70], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r13
call fcn.18007ae80
jmp 0x180046985
mov dword [rbp + 0x1a], 0x59
jmp case.0x180046906.24
mov rax, qword [r10]
lea r8, [rbp - 0x70]
mov edx, 0xd7
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
mov dword [rbp - 0x70], 1
call fcn.180056f50
movaps xmm7, xmmword [0x18010b3b0]
movaps xmm6, xmm8
unpcklps xmm6, xmm8
mov rbx, rax
jmp 0x180046985
mov eax, 0x30
cmp eax, 0x30
je 0x180046950
add eax, 0xd50
cmp eax, 0xd50
jbe 0x180046bf5
mov rax, qword [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x70]
mov rax, qword [r10]
mov r8d, 0x50
mov qword [rsp + 0x40], rax
call fcn.1800268e0
mov edx, eax
test eax, eax
je 0x180046c60
mov ecx, 0xf6
nop word [rax + rax]
mov eax, ecx
sub eax, 0xf5
je case.0x18004717c.6
cmp eax, 1
jne 0x180046c56
mov dword [rsp + 0x58], edx
dec ecx
cmp ecx, 0xf4
ja 0x180046c40
mov dword [rsp + 0x58], 0
jmp 0x180046985
lea rdx, [r11 + 0x4019c]
mov r9d, 0x153
lea rcx, [r11 + 0x4021b]
lea r8, [0x180108500]
call fcn.18004d390
jmp 0x180046985
mov dword [r11 + 0x40234], 1
mov dword [r11 + 0x40238], 0xa
jmp case.0x180046906.24
mov rax, qword [r10]
lea r8, [rsp + 0x40]
mov r9d, 0x55
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
call fcn.1800775f0
test eax, eax
jne 0x180046ee2
mov eax, dword [0x180092734]
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x80], eax
lea rcx, [rsp + 0x40]
movzx eax, word [0x180092738]
mov r9d, 0xf7
mov word [rbp - 0x7c], ax
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
call fcn.180079d90
test eax, eax
je 0x180046985
mov edx, 0x10d
mov eax, edx
sub eax, 0x10d
je 0x180046d2f
cmp eax, 1
je case.0x18004717c.6
mov r10, qword [rsp + 0x50]
jmp 0x180046d44
mov r10, qword [rsp + 0x50]
mov rax, qword [r10]
mov rcx, qword [rax + 0x90]
mov eax, dword [rcx]
mov dword [rsp + 0x58], eax
inc edx
cmp edx, 0x10f
jb 0x180046d16
jmp 0x18004698a
lea rax, [0x180013ae0]
mov qword [r11 + 0x40228], rax
lea rcx, [0x180000000]
inc esi
inc edi
cmp esi, r14d
jb 0x1800468e1
mov r8d, dword [rsp + 0x48]
lea edx, [r8 + 0x19]
mov dword [rsp + 0x78], edx
cmp r8d, edx
jae case.0x18004717c.6
mov r13d, dword [rbp - 0x80]
lea edi, [r8 - 0x2e]
mov r12, qword [rsp + 0x40]
movzx r14d, byte [rsp + 0x68]
movzx r15d, byte [rsp + 0x68]
mov rsi, qword [rsp + 0x40]
mov dword [rbp - 0x70], edi
nop dword [rax]
cmp edi, 0x95
ja case.0x180046dd5.12
movzx eax, byte [rcx + rdi + 0x47498]
mov ecx, dword [rcx + rax*4 + 0x47434]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov rax, qword [rsp + 0x50]
xor r9d, r9d
xor edx, edx
mov r8d, 0x90
mov rax, qword [rax]
mov rcx, qword [rax + 0x10]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.18002e6b0
jmp 0x180046ee2
mov eax, 0x1025
jmp 0x180046ee2
mov dword [r11 + 0x4023c], 0x6321
jmp case.0x180046dd5.12
mov eax, dword [0x180108504]
mov dword [rbp - 0x2e], eax
mov dword [rbp - 0x2a], 0x6e
jmp case.0x180046dd5.12
mov rax, qword [r10]
mov dword [rax + 0x98], 1
jmp case.0x180046dd5.12
mov eax, dword [rbp - 0x68]
cmp eax, dword [rbp - 0x60]
je case.0x180046dd5.12
mov ebx, 0xf7
cmp ebx, 0x33d
ja 0x180046ec1
je 0x180046f34
cmp ebx, 0xf7
je 0x180046f34
cmp ebx, 0x1b9
je 0x180046eb4
cmp ebx, 0x27b
jne 0x180046f34
xor eax, eax
mov dword [rbp - 0x58], 0x20
mov qword [r9 + 0x10], rax
mov rax, r9
cmp qword [r9 + 0x18], 0x10
jb 0x180046eac
mov rax, qword [r9]
mov byte [rax], 0
jmp 0x180046f34
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
jmp 0x180046f34
cmp ebx, 0x3ff
je 0x180046f2e
cmp ebx, 0x4c1
je 0x180046f1b
cmp ebx, 0x583
jne 0x180046f34
mov byte [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.180090270
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, r13d
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x58]
call qword [sym.imp.dbghelp.dll_SymUnDName64]
jmp 0x180046f34
mov r13d, 0x104
mov r9, qword [rsp + 0x70]
add ebx, 0xc2
cmp ebx, 0x645
jb 0x180046e64
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
jmp case.0x180046dd5.12
mov edx, dword [rbp - 0x68]
xor r8d, r8d
mov rcx, r9
call fcn.18008fa20
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
jmp case.0x180046dd5.12
mov r8d, 2
lea rdx, [0x180107fd4]
lea rcx, [rbp - 0x16]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
jmp case.0x180046dd5.12
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
mov dword [rbp - 0x68], eax
jmp case.0x180046dd5.12
cmp qword [r9 + 0x18], 0x10
mov rdx, r9
jb 0x180046fc5
mov rdx, qword [r9]
mov r8d, dword [rbp - 0x68]
lea r9, [rbp - 0x60]
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
jmp case.0x180046dd5.12
mov eax, dword [0x18010850c]
lea rdx, [0x180108514]
mov dword [rbp - 0x28], eax
lea rcx, [rbp - 0x38]
movzx eax, word [0x180108510]
mov r8d, 2
mov word [rbp - 0x24], ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
jmp case.0x180046dd5.12
mov eax, dword [0x18010851c]
mov dword [rbp - 0x20], eax
movzx eax, word [0x180108520]
mov word [rbp - 0x1c], ax
jmp case.0x180046dd5.12
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
jmp case.0x180046dd5.12
mov dword [rbp - 0x1c], 0x72
jmp case.0x180046dd5.12
movsd xmm0, qword [str.Unacc]
mov eax, dword [0x180108530]
movsd qword [rbp - 0x38], xmm0
mov dword [rbp - 0x30], eax
jmp case.0x180046dd5.12
movsd xmm0, qword [str.l2fetc]
mov eax, dword [0x180108540]
movsd qword [rbp + 0x20], xmm0
mov dword [rbp + 0x28], eax
mov dword [rbp + 0x2c], 0x68
jmp case.0x180046dd5.12
mov eax, dword [0x180108548]
lea rdx, [0x180108550]
mov dword [rbp - 0xe], eax
lea rcx, [rbp - 0xa]
movzx eax, word [0x18010854c]
mov r8d, 3
mov word [rbp - 0xa], ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
jmp case.0x180046dd5.12
mov eax, dword [0x180108558]
mov dword [rbp - 0x12], eax
movzx eax, word [0x18010855c]
mov word [rbp - 0xe], ax
jmp case.0x180046dd5.12
mov dword [rbp - 0x14], 0x67
jmp case.0x180046dd5.12
cmp qword [r10 + 0x18], 8
mov rcx, r10
mov dword [rbp - 6], 0x65
jb 0x180047113
mov rcx, qword [r10]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [rax + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp case.0x180046dd5.12
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x18004724e
xor ebx, ebx
mov edi, ebx
nop
cmp edi, 6
ja case.default.0x18004717c
lea rdx, [0x180000000]
mov eax, edi
mov ecx, dword [rdx + rax*4 + 0x47530]
add rcx, rdx
jmp rcx
test r12, r12
movzx eax, r14b
mov ecx, ebx
cmovne ecx, eax
movzx r14d, cl
test r15b, r15b
je case.default.0x18004717c
mov ebx, 0xed
nop dword [rax]
cmp ebx, 0xed
je 0x1800471bb
cmp ebx, 0x33d8
jne 0x1800471c9
mov rcx, rsi
call qword [sym.imp.dbghelp.dll_SymCleanup]
jmp 0x1800471c9
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.dbghelp.dll_SymRegisterCallback64]
add ebx, 0x32eb
cmp ebx, 0x65d6
jbe 0x1800471a0
xor ebx, ebx
jmp case.default.0x18004717c
mov byte [rsp + 0x58], 0
jmp case.default.0x18004717c
call qword [sym.imp.dbghelp.dll_ImagehlpApiVersion]
cmp dword [rbp - 0x80], 0
mov ecx, ebx
mov r12, rax
movzx eax, r15b
cmovne ecx, eax
movzx r15d, cl
jmp case.default.0x18004717c
test r14b, r14b
je case.default.0x18004717c
mov rcx, r12
call qword [sym.imp.dbghelp.dll_ImagehlpApiVersionEx]
jmp case.default.0x18004717c
mov rsi, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.dbghelp.dll_SymInitialize]
mov dword [rbp - 0x80], eax
jmp case.default.0x18004717c
mov r15b, 1
movzx r14d, r15b
inc edi
lea eax, [rdi + 0xc6]
cmp eax, 0xcd
jb 0x180047160
mov edi, dword [rbp - 0x70]
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
xor eax, eax
mov dword [rbp - 0x60], eax
jmp case.0x180046dd5.12
mov eax, 0x38
nop word [rax + rax]
cmp eax, 0x38
je 0x180047272
cmp eax, 0x2ae0
je case.0x18004717c.6
jmp 0x180047277
mov byte [rsp + 0x58], 1
add eax, 0x2aa8
cmp eax, 0x5550
jbe 0x180047260
lea rdx, [rbp - 0x38]
lea rcx, [rbp]
call sub.IMM32.dll_ImmInstallIMEW
mov edx, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x48]
jmp case.0x180046dd5.12
mov eax, dword [0x180108560]
mov dword [rbp - 0x1a], eax
movzx eax, word [0x180108564]
mov word [rbp - 0x16], ax
inc r8d
inc edi
mov dword [rsp + 0x48], r8d
mov dword [rbp - 0x70], edi
cmp r8d, edx
jae case.0x18004717c.6
mov r9, qword [rsp + 0x70]
lea rcx, [0x180000000]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x60]
jmp 0x180046db0
xor eax, eax
jmp 0x180046ee2