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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2f8], rbx
mov rax, qword [0x180248950]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12, r9
mov r15, r8
mov rbx, rcx
xor r13d, r13d
cmp word [r8], r13w
jne 0x180151854
mov r8d, r13d
jmp 0x18015186a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [r15 + r8*2], r13w
jne 0x180151860
add rcx, 0x40
mov rdx, r15
call fcn.180005450
cmp word [r12], r13w
jne 0x180151882
mov r8, r13
jmp 0x180151890
or r8, 0xffffffffffffffff
inc r8
cmp word [r12 + r8*2], r13w
jne 0x180151886
lea rsi, [rbx + 0x60]
mov rdx, r12
mov rcx, rsi
call fcn.180005450
cmp qword [rsi + 0x18], 8
jb 0x1801518ab
mov rcx, qword [rsi]
jmp 0x1801518ae
mov rcx, rsi
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180151bb9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x34
call fcn.1800b4760
mov rdi, rax
test rax, rax
je 0x180151bb9
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov dword [rdi + 0x30], eax
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
lea r8d, [rax + 0x34]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
lea rdx, str.__GS__
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180151bb9
cmp rcx, 7
jne 0x180151951
lea rcx, [rdi + 0xa]
lea rdx, str.__Dict__
call fcn.1800c0ca0
test eax, eax
jne 0x180151bb9
mov dword [rsp + 0x30], 0x4e20
mov eax, dword [rdi + 0x20]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x20], eax
lea r9, str.__GS_SYS_PY_CELL_DICT_IDX__
lea r8, str.WanNengWBInput
lea rdx, str._s__s__d__d__d
lea rcx, [rbp - 0x70]
call fcn.1800b5a54
cmp word [rbp - 0x70], r13w
jne 0x1801519c0
mov r8, r13
jmp 0x1801519da
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r13w
jne 0x1801519d0
lea r14, [rbx + 0x80]
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.180005450
mov rcx, rdi
call fcn.1800bcdc8
mov dword [rsp + 0x40], r13d
cmp qword [r14 + 0x18], 8
jb 0x180151a04
mov r14, qword [r14]
cmp qword [rsi + 0x18], 8
jb 0x180151a0e
mov rsi, qword [rsi]
lea rdi, [rbx + 8]
lea rax, [rbx + 0x28]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbx + 0x10]
mov rdx, rsi
mov rcx, rbx
call fcn.180158690
mov qword [rbx + 0x18], rax
cmp dword [rsp + 0x40], r13d
jne 0x180151bb9
test rax, rax
je 0x180151bb9
mov qword [rbp - 0x78], 7
xor esi, esi
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
lea r8, [rsp + 0x70]
mov rdx, r15
mov rcx, rbx
call fcn.1801514a0
test eax, eax
jne 0x180151a8d
lea r8, [rbx + 0x18]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call fcn.180158640
jmp 0x180151ba4
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180005100
lea r8, [rsp + 0x48]
mov edx, dword [rdi]
mov rcx, qword [rbx + 0x18]
call fcn.1801580d0
test eax, eax
jne 0x180151b1e
lea r8, [rbx + 0x18]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call fcn.180158640
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180005100
lea r9, [rsp + 0x48]
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.180151bf0
test eax, eax
je 0x180151ba4
mov esi, 1
mov rdi, qword [rbx + 0x18]
xor r9d, r9d
mov eax, r9d
lea r10, str.__GS__
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r10 + rax - 1]
jne 0x180151b59
cmp rax, 7
jne 0x180151b40
cmp cl, byte [r10 + rax - 1]
mov r15d, esi
cmovne r15d, r9d
lea rcx, [rdi + 0xa]
lea rdx, str.__Dict__
call fcn.1800c0ca0
test eax, eax
jne 0x180151b92
test r15d, r15d
je 0x180151b92
cmp byte [rdi + 0x1c], sil
je 0x180151b92
mov qword [rbx + 0x30], rdi
mov eax, dword [rdi + 0x30]
add rax, rdi
mov qword [rbx + 0x20], rax
mov dword [rbx + 0x38], esi
jmp 0x180151ba4
lea r8, [rbx + 0x18]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call fcn.180158640
xor esi, esi
cmp qword [rbp - 0x78], 8
jb 0x180151bb5
mov rcx, qword [rsp + 0x70]
call fcn.1800b5354
mov eax, esi
jmp 0x180151bbb
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1800b5370
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret