Function at 0x180013250
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x180045010]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rcx, qword [0x180047050]
lea rdx, [0x18003ea28]
xor esi, esi
mov dword [rcx + 0x4174788], esi
add rcx, 0xbb0ee0
call fcn.18001c920
mov rdi, rax
test rax, rax
je 0x180013ece
mov rbx, qword [0x180047050]
xor edx, edx
mov r8d, 0x18000
lea rcx, [rbx + 0x12b12e0]
call fcn.1800169c0
mov r9, rdi
lea r8d, [rsi + 1]
mov edx, 0x80
lea rcx, [rbx + 0x12b12e0]
call fcn.180021eec
mov rcx, rdi
call fcn.18001ce38
mov r8, qword [0x180047050]
cmp byte [r8 + 0x12b12e0], 0x42
jne 0x180013ece
cmp byte [r8 + 0x12b12e1], 0x48
jne 0x180013ece
cmp byte [r8 + 0x12b12e2], 0x32
jne 0x180013ece
cmp byte [r8 + 0x12b12e3], 0x2c
jne 0x180013ece
movsd xmm1, qword [0x18003ee90]
mov dword [r8 + 0x4174788], 1
movzx ecx, byte [r8 + 0x12b12e4]
mov eax, ecx
and ecx, 1
and eax, 0xfffe
mov dword [r8 + 0x4174700], ecx
mov dword [r8 + 0x41747fc], eax
movzx eax, byte [r8 + 0x12b12e5]
add eax, 0x64
mov dword [r8 + 0x41746e4], eax
movzx eax, byte [r8 + 0x12b12e6]
mov dword [r8 + 0x41746e0], eax
movzx eax, byte [r8 + 0x12b12e7]
mov dword [r8 + 0x41746dc], eax
movzx eax, byte [r8 + 0x12b12e8]
mov dword [r8 + 0x41746d8], eax
movzx eax, byte [r8 + 0x12b12e9]
mov dword [r8 + 0x41746d4], eax
movzx eax, byte [r8 + 0x12b12ea]
mov dword [r8 + 0x41746d0], eax
movzx eax, word [r8 + 0x12b12eb]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008a0], xmm0
movzx eax, word [r8 + 0x12b12ed]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008a8], xmm0
movzx eax, word [r8 + 0x12b12ef]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008b0], xmm0
movzx eax, word [r8 + 0x12b12f1]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008b8], xmm0
movzx eax, word [r8 + 0x12b12f3]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008c0], xmm0
movzx eax, word [r8 + 0x12b12f5]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008c8], xmm0
movzx eax, word [r8 + 0x12b12f7]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008d0], xmm0
movzx eax, word [r8 + 0x12b12f9]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008d8], xmm0
movzx eax, word [r8 + 0x12b12fb]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008e0], xmm0
movzx eax, word [r8 + 0x12b12fd]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008e8], xmm0
movzx eax, word [r8 + 0x12b12ff]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008f0], xmm0
movzx eax, word [r8 + 0x12b1301]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6008f8], xmm0
movzx eax, word [r8 + 0x12b1303]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x600960], xmm0
movzx eax, word [r8 + 0x12b1305]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x600968], xmm0
movzx eax, word [r8 + 0x12b1307]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x600970], xmm0
movzx eax, word [r8 + 0x12b1309]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x600978], xmm0
movzx eax, word [r8 + 0x12b130b]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x600980], xmm0
movzx eax, word [r8 + 0x12b130d]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x600988], xmm0
movzx eax, word [r8 + 0x12b130f]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x600990], xmm0
movzx eax, word [r8 + 0x12b1311]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x600998], xmm0
movzx eax, word [r8 + 0x12b1313]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6009a0], xmm0
movzx eax, word [r8 + 0x12b1315]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6009a8], xmm0
movzx eax, word [r8 + 0x12b1317]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6009b0], xmm0
movzx eax, word [r8 + 0x12b1319]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [r8 + 0x6009b8], xmm0
mov eax, dword [r8 + 0x4174700]
test eax, eax
jne 0x180013b57
movzx eax, byte [r8 + 0x12b131c]
movzx ecx, byte [r8 + 0x12b131d]
movsd xmm2, qword [0x18003eeb8]
shl ecx, 8
add ecx, eax
movzx eax, byte [r8 + 0x12b131b]
shl ecx, 8
add ecx, eax
cmp dword [r8 + 0x41747fc], 2
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x18], xmm0
movzx eax, word [r8 + 0x12b131e]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x20], xmm0
movzx eax, word [r8 + 0x12b1320]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm2
movsd qword [r8 + 0x41746a8], xmm1
movzx eax, word [r8 + 0x12b1322]
mov dword [r8 + 0x50], eax
movzx eax, byte [r8 + 0x12b1324]
mov dword [r8 + 0x5c], eax
movzx ecx, byte [r8 + 0x12b1325]
lea r9d, [rax + rax]
jl 0x1800139e0
movsd xmm1, qword [0x18003eda8]
xor edx, edx
movsd xmm3, qword [0x18003ee18]
mov eax, r9d
movsd xmm4, qword [0x18003edb0]
div ecx
mov dword [r8 + 0x60], ecx
mov edx, 0xa
inc eax
mov ecx, esi
sub edx, dword [r8 + 0x12ca320]
mov dword [r8 + 0x58], eax
mov eax, esi
movsx r9d, byte [r8 + 0x12b1326]
mov dword [r8 + 0x12ca31c], r9d
nop dword [rax + rax]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
subsd xmm0, xmm3
subsd xmm0, xmm4
cmp eax, r9d
je 0x180013802
inc eax
add ecx, edx
cmp eax, 5
jl 0x1800137e0
cvttsd2si eax, xmm0
mov dword [r8 + 0x12ca318], eax
movzx ecx, byte [r8 + 0x12b1327]
mov dword [r8 + 0x12ca338], ecx
sub ecx, 1
je 0x180013893
sub ecx, 1
je 0x180013886
sub ecx, 1
je 0x18001386e
sub ecx, 1
je 0x180013856
cmp ecx, 1
je 0x18001383e
mov qword [r8 + 0x12ca30c], rsi
jmp 0x1800138a5
mov dword [r8 + 0x12ca310], 2
mov dword [r8 + 0x12ca30c], 3
jmp 0x1800138a5
mov dword [r8 + 0x12ca310], 2
mov dword [r8 + 0x12ca30c], 2
jmp 0x1800138a5
mov dword [r8 + 0x12ca310], 2
mov dword [r8 + 0x12ca30c], 1
jmp 0x1800138a5
mov dword [r8 + 0x12ca310], 2
jmp 0x18001389e
mov dword [r8 + 0x12ca310], 1
mov dword [r8 + 0x12ca30c], esi
cmp dword [r8 + 0x12ca364], esi
jne 0x1800138d3
movsx eax, byte [r8 + 0x12b1328]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [r8 + 0x78], xmm0
movzx eax, word [r8 + 0x12b1329]
mov dword [r8 + 0x12ca308], eax
movzx eax, byte [r8 + 0x12b132b]
lea ecx, [rax + rax*2]
mov dword [r8 + 0x4174750], ecx
movzx eax, word [r8 + 0x12b132c]
add eax, 0x11170
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x12ca330], xmm0
movzx eax, word [r8 + 0x12b132e]
mov dword [r8 + 0x14], eax
movzx eax, byte [r8 + 0x12b1330]
add eax, eax
mov dword [r8 + 0x10], eax
movzx eax, byte [r8 + 0x12b1332]
movzx ecx, byte [r8 + 0x12b1333]
shl ecx, 8
add ecx, eax
movzx eax, byte [r8 + 0x12b1331]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 8], xmm0
movzx eax, byte [r8 + 0x12b1335]
movzx ecx, byte [r8 + 0x12b1336]
shl ecx, 8
add ecx, eax
movzx eax, byte [r8 + 0x12b1334]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x12ca300], xmm0
movzx eax, byte [r8 + 0x12b1337]
mov dword [r8 + 0x417468c], eax
movzx eax, word [r8 + 0x12b1338]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x88], xmm0
movzx eax, byte [r8 + 0x12b133a]
mov dword [r8 + 0x12ca39c], eax
movzx eax, byte [r8 + 0x12b133b]
mov dword [r8 + 0x41746f8], eax
call fcn.18000f910
jmp 0x180013d17
mov dword [r8 + 0x58], ecx
lea eax, [rcx - 1]
cdq
idiv r9d
mov dword [r8 + 0x60], eax
movsx eax, byte [r8 + 0x12b1326]
mov dword [r8 + 0x12ca318], eax
movzx eax, byte [r8 + 0x12b1327]
mov dword [r8 + 0x12ca310], eax
movzx eax, byte [r8 + 0x12b1328]
mov dword [r8 + 0x12ca30c], eax
cmp dword [r8 + 0x12ca364], esi
jne 0x180013a4a
movsx eax, byte [r8 + 0x12b1329]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [r8 + 0x78], xmm0
movzx eax, word [r8 + 0x12b132a]
mov dword [r8 + 0x12ca308], eax
movzx eax, byte [r8 + 0x12b132c]
lea ecx, [rax + rax*2]
mov dword [r8 + 0x4174750], ecx
movzx eax, word [r8 + 0x12b132d]
add eax, 0x11170
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x12ca330], xmm0
movzx eax, word [r8 + 0x12b132f]
mov dword [r8 + 0x14], eax
movzx eax, byte [r8 + 0x12b1331]
add eax, eax
mov dword [r8 + 0x10], eax
movzx eax, byte [r8 + 0x12b1333]
movzx ecx, byte [r8 + 0x12b1334]
shl ecx, 8
add ecx, eax
movzx eax, byte [r8 + 0x12b1332]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 8], xmm0
movzx eax, byte [r8 + 0x12b1336]
movzx ecx, byte [r8 + 0x12b1337]
shl ecx, 8
add ecx, eax
movzx eax, byte [r8 + 0x12b1335]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x12ca300], xmm0
movzx eax, byte [r8 + 0x12b1338]
mov dword [r8 + 0x417468c], eax
movzx eax, word [r8 + 0x12b1339]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x88], xmm0
movzx eax, byte [r8 + 0x12b133b]
mov dword [r8 + 0x12ca39c], eax
movzx eax, byte [r8 + 0x12b133c]
mov dword [r8 + 0x41746f8], eax
call fcn.18000f910
jmp 0x180013d17
cmp eax, 1
jne 0x180013d1e
movzx eax, word [r8 + 0x12b131b]
movsd xmm2, qword [0x18003eeb8]
add eax, 0x11170
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x12ca330], xmm0
movzx eax, word [r8 + 0x12b131d]
mov dword [r8 + 0x14], eax
movzx eax, byte [r8 + 0x12b1320]
movzx ecx, byte [r8 + 0x12b1321]
shl ecx, 8
add ecx, eax
movzx eax, byte [r8 + 0x12b131f]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 8], xmm0
movzx eax, byte [r8 + 0x12b1322]
add eax, eax
mov dword [r8 + 0x10], eax
movzx eax, word [r8 + 0x12b1323]
mov dword [r8], eax
cmp eax, 0x100
ja 0x180013bf4
cmp dword [r8 + 0x50], 0x100
jle 0x180013bf8
mov dword [r8 + 0x50], eax
movzx eax, word [r8 + 0x12b1326]
mov dword [r8 + 0x4174750], eax
movsx eax, byte [r8 + 0x12b1328]
mov dword [r8 + 0x12ca318], eax
movzx eax, byte [r8 + 0x12b1329]
mov dword [r8 + 0x12ca310], eax
movzx eax, byte [r8 + 0x12b132a]
mov dword [r8 + 0x12ca30c], eax
cmp dword [r8 + 0x12ca364], esi
jne 0x180013c78
movzx eax, word [r8 + 0x12b132b]
mov dword [r8 + 0x12ca308], eax
movsx eax, byte [r8 + 0x12b132d]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [r8 + 0x70], xmm0
movsx eax, byte [r8 + 0x12b132e]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movsd qword [r8 + 0x78], xmm1
cmp dword [r8 + 0x41747fc], 2
movzx eax, byte [r8 + 0x12b132f]
mov dword [r8 + 0x417468c], eax
movzx eax, word [r8 + 0x12b1330]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [r8 + 0x88], xmm0
movzx eax, word [r8 + 0x12b1332]
mov dword [r8 + 0x50], eax
movzx eax, byte [r8 + 0x12b1334]
mov dword [r8 + 0x5c], eax
movzx ecx, byte [r8 + 0x12b1335]
lea r9d, [rax + rax]
jl 0x180013ce5
xor edx, edx
mov dword [r8 + 0x60], ecx
mov eax, r9d
div ecx
inc eax
mov dword [r8 + 0x58], eax
jmp 0x180013cf4
lea eax, [rcx - 1]
mov dword [r8 + 0x58], ecx
cdq
idiv r9d
mov dword [r8 + 0x60], eax
movzx eax, byte [r8 + 0x12b1336]
mov dword [r8 + 0x12ca39c], eax
movzx eax, byte [r8 + 0x12b1337]
mov dword [r8 + 0x41746f8], eax
call fcn.1800029c0
mov r8, qword [0x180047050]
call fcn.180010560
or dword [r8 + 0xbb0b44], 8
mov ebx, esi
nop dword [rax]
test byte [r8 + 0xbb0b44], 8
je 0x180013d63
test dword [r8 + 0xbb0b48], 0x80000
jne 0x180013d63
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, qword [0x180047050]
inc ebx
cmp ebx, 0xbb8
jl 0x180013d30
mov dword [r8 + 0x12ca3a0], esi
call fcn.180013f00
mov rcx, qword [0x180047050]
mov ebx, esi
mov dword [rcx + 0x4174784], eax
or dword [rcx + 0xbb0b44], 0x80
nop dword [rax + rax]
test byte [rcx + 0xbb0b44], 0x80
je 0x180013dc3
test dword [rcx + 0xbb0b48], 0x80000
jne 0x180013dc3
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xbb8
jge 0x180013dc3
mov rcx, qword [0x180047050]
jmp 0x180013d90
call fcn.18000e810
mov rcx, qword [0x180047050]
cmp dword [rcx + 0x12ca370], 2
mov dword [rcx + 0x12ca374], esi
mov dword [rcx + 0x417477c], 1
jne 0x180013df4
call fcn.180010240
mov rcx, qword [0x180047050]
cmp dword [rcx + 0x12ca370], 1
jne 0x180013eca
cmp dword [rcx + 0x41746f8], 1
jne 0x180013eca
add rcx, 0xbb0ce0
lea rdx, [0x18003ebe4]
call fcn.18001c920
mov rbx, rax
test rax, rax
je 0x180013eca
mov rcx, qword [0x180047050]
mov eax, dword [rcx + 0x4174700]
test eax, eax
jne 0x180013e7b
lea rdx, [rsp + 0x20]
call fcn.180011300
mov rcx, qword [0x180047050]
lea r9, [rsp + 0x20]
lea rdx, str.PPI__d__s_n
movzx r8d, word [rcx + 0x4174700]
mov rcx, rbx
or r8d, 2
call fcn.1800010d0
mov rcx, rbx
call fcn.18001ce38
xor eax, eax
jmp 0x180013ed3
movzx r8d, ax
lea rdx, str.PPI__d_
or r8d, 2
mov rcx, rbx
call fcn.1800010d0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call fcn.1800169c0
lea rdx, [rsp + 0x20]
call fcn.18000e8e0
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [0x18003e94c]
call fcn.1800010d0
mov rcx, rbx
call fcn.18001ce38
xor eax, eax
jmp 0x180013ed3
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180014fd0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret