Function at 0x1400119d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140101ac0]
lea rdx, [0x140041b20]
mov dword [rcx + 0x1a36738], 0
add rcx, 0x11b0ee0
call fcn.140023d70
mov rdi, rax
test rax, rax
je 0x14001220e
mov rbx, qword [0x140101ac0]
xor edx, edx
mov r8d, 0x18000
lea rcx, [rbx + 0x18b12e0]
call fcn.140019d10
mov edx, 0x80
lea rcx, [rbx + 0x18b12e0]
mov r9, rdi
lea r8d, [rdx - 0x7f]
call fcn.1400251d0
mov rcx, rdi
call fcn.140024288
mov rdx, qword [0x140101ac0]
cmp byte [rdx + 0x18b12e0], 0x42
jne 0x14001220e
cmp byte [rdx + 0x18b12e1], 0x48
jne 0x14001220e
cmp byte [rdx + 0x18b12e2], 0x32
jne 0x14001220e
cmp byte [rdx + 0x18b12e3], 0x2c
jne 0x14001220e
movsd xmm1, qword [0x140042f60]
mov dword [rdx + 0x1a36738], 1
movzx eax, byte [rdx + 0x18b12e4]
mov dword [rdx + 0x1a366f0], eax
movzx eax, byte [rdx + 0x18b12e5]
add eax, 0x64
mov dword [rdx + 0x1a366d4], eax
movzx eax, byte [rdx + 0x18b12e6]
mov dword [rdx + 0x1a366d0], eax
movzx eax, byte [rdx + 0x18b12e7]
mov dword [rdx + 0x1a366cc], eax
movzx eax, byte [rdx + 0x18b12e8]
mov dword [rdx + 0x1a366c8], eax
movzx eax, byte [rdx + 0x18b12e9]
mov dword [rdx + 0x1a366c4], eax
movzx eax, byte [rdx + 0x18b12ea]
mov dword [rdx + 0x1a366c0], eax
movzx eax, word [rdx + 0x18b12eb]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008a0], xmm0
movzx eax, word [rdx + 0x18b12ed]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008a8], xmm0
movzx eax, word [rdx + 0x18b12ef]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008b0], xmm0
movzx eax, word [rdx + 0x18b12f1]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008b8], xmm0
movzx eax, word [rdx + 0x18b12f3]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008c0], xmm0
movzx eax, word [rdx + 0x18b12f5]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008c8], xmm0
movzx eax, word [rdx + 0x18b12f7]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008d0], xmm0
movzx eax, word [rdx + 0x18b12f9]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008d8], xmm0
movzx eax, word [rdx + 0x18b12fb]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008e0], xmm0
movzx eax, word [rdx + 0x18b12fd]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008e8], xmm0
movzx eax, word [rdx + 0x18b12ff]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008f0], xmm0
movzx eax, word [rdx + 0x18b1301]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc008f8], xmm0
movzx eax, word [rdx + 0x18b1303]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc00960], xmm0
movzx eax, word [rdx + 0x18b1305]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc00968], xmm0
movzx eax, word [rdx + 0x18b1307]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc00970], xmm0
movzx eax, word [rdx + 0x18b1309]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc00978], xmm0
movzx eax, word [rdx + 0x18b130b]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc00980], xmm0
movzx eax, word [rdx + 0x18b130d]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc00988], xmm0
movzx eax, word [rdx + 0x18b130f]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc00990], xmm0
movzx eax, word [rdx + 0x18b1311]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc00998], xmm0
movzx eax, word [rdx + 0x18b1313]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc009a0], xmm0
movzx eax, word [rdx + 0x18b1315]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc009a8], xmm0
movzx eax, word [rdx + 0x18b1317]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc009b0], xmm0
movzx eax, word [rdx + 0x18b1319]
sub eax, 0x8000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [rdx + 0xc009b8], xmm0
mov eax, dword [rdx + 0x1a366f0]
test eax, eax
jne 0x140011fc4
movzx eax, byte [rdx + 0x18b131c]
movzx ecx, byte [rdx + 0x18b131d]
movsd xmm2, qword [0x140042f88]
shl ecx, 8
add ecx, eax
movzx eax, byte [rdx + 0x18b131b]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 0x18], xmm0
movzx eax, word [rdx + 0x18b131e]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 0x20], xmm0
movzx eax, word [rdx + 0x18b1320]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm2
movsd qword [rdx + 0x1a366a0], xmm1
movzx eax, word [rdx + 0x18b1322]
mov dword [rdx + 0x50], eax
movzx eax, byte [rdx + 0x18b1324]
mov dword [rdx + 0x5c], eax
movzx eax, byte [rdx + 0x18b1325]
mov dword [rdx + 0x58], eax
movsx eax, byte [rdx + 0x18b1326]
mov dword [rdx + 0x18cc330], eax
movzx eax, byte [rdx + 0x18b1327]
mov dword [rdx + 0x18cc328], eax
movzx eax, byte [rdx + 0x18b1328]
mov dword [rdx + 0x18cc324], eax
movsx eax, byte [rdx + 0x18b1329]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rdx + 0x78], xmm0
movzx eax, word [rdx + 0x18b132a]
mov dword [rdx + 0x18cc320], eax
movzx eax, byte [rdx + 0x18b12fc]
lea ecx, [rax + rax*2]
mov dword [rdx + 0x1a36700], ecx
movzx eax, word [rdx + 0x18b132d]
add eax, 0x11170
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 0x18cc348], xmm0
movzx eax, word [rdx + 0x18b132f]
mov dword [rdx + 0x14], eax
movzx eax, byte [rdx + 0x18b1331]
add eax, eax
mov dword [rdx + 0x10], eax
movzx eax, byte [rdx + 0x18b1333]
movzx ecx, byte [rdx + 0x18b1334]
shl ecx, 8
add ecx, eax
movzx eax, byte [rdx + 0x18b1332]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 8], xmm0
movzx eax, byte [rdx + 0x18b1336]
movzx ecx, byte [rdx + 0x18b1337]
shl ecx, 8
add ecx, eax
movzx eax, byte [rdx + 0x18b1335]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 0x18cc318], xmm0
movzx eax, byte [rdx + 0x18b1338]
mov dword [rdx + 0x1a36688], eax
movzx eax, word [rdx + 0x18b1339]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 0x88], xmm0
movzx eax, byte [rdx + 0x18b133b]
mov dword [rdx + 0x18cc3b4], eax
movzx eax, byte [rdx + 0x18b133c]
mov dword [rdx + 0x1a366e8], eax
call fcn.14000e910
jmp 0x14001212f
cmp eax, 1
jne 0x140012136
movzx eax, word [rdx + 0x18b131b]
movsd xmm2, qword [0x140042f88]
add eax, 0x11170
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 0x18cc348], xmm0
movzx eax, word [rdx + 0x18b131d]
mov dword [rdx + 0x14], eax
movzx eax, byte [rdx + 0x18b1320]
movzx ecx, byte [rdx + 0x18b1321]
shl ecx, 8
add ecx, eax
movzx eax, byte [rdx + 0x18b131f]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 8], xmm0
movzx eax, byte [rdx + 0x18b1322]
add eax, eax
mov dword [rdx + 0x10], eax
movzx eax, word [rdx + 0x18b1323]
mov dword [rdx], eax
cmp eax, 0x100
ja 0x140012054
cmp dword [rdx + 0x50], 0x100
jle 0x140012057
mov dword [rdx + 0x50], eax
movzx eax, byte [rdx + 0x18b1325]
mov dword [rdx + 0x6c], eax
movzx eax, word [rdx + 0x18b1326]
mov dword [rdx + 0x1a36700], eax
movsx eax, byte [rdx + 0x18b1328]
mov dword [rdx + 0x18cc330], eax
movzx eax, byte [rdx + 0x18b1329]
mov dword [rdx + 0x18cc328], eax
movzx eax, byte [rdx + 0x18b132a]
mov dword [rdx + 0x18cc324], eax
movzx eax, word [rdx + 0x18b132b]
mov dword [rdx + 0x18cc320], eax
movsx eax, byte [rdx + 0x18b132d]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rdx + 0x70], xmm0
movsx eax, byte [rdx + 0x18b132e]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movsd qword [rdx + 0x78], xmm1
movzx eax, byte [rdx + 0x18b132f]
mov dword [rdx + 0x1a36688], eax
movzx eax, word [rdx + 0x18b1330]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
movsd qword [rdx + 0x88], xmm0
movzx eax, word [rdx + 0x18b1332]
mov dword [rdx + 0x50], eax
movzx eax, byte [rdx + 0x18b1334]
mov dword [rdx + 0x5c], eax
movzx eax, byte [rdx + 0x18b1335]
mov dword [rdx + 0x58], eax
movzx eax, byte [rdx + 0x18b1336]
mov dword [rdx + 0x18cc3b4], eax
movzx eax, byte [rdx + 0x18b1337]
mov dword [rdx + 0x1a366e8], eax
call fcn.140002b90
mov rdx, qword [0x140101ac0]
call fcn.14000f330
or dword [rdx + 0x11b0b44], 8
xor ebx, ebx
test byte [rdx + 0x11b0b44], 8
je 0x140012175
test dword [rdx + 0x11b0b48], 0x100000
jne 0x140012175
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [0x140101ac0]
inc ebx
cmp ebx, 0xbb8
jl 0x140012144
mov dword [rdx + 0x18cc3b8], 0
call fcn.140012220
mov rcx, qword [0x140101ac0]
mov dword [rcx + 0x1a36734], eax
or dword [rcx + 0x11b0b44], 0x40
xor ebx, ebx
nop word [rax + rax]
test byte [rcx + 0x11b0b44], 0x40
je 0x1400121d3
test dword [rcx + 0x11b0b48], 0x100000
jne 0x1400121d3
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xbb8
jge 0x1400121d3
mov rcx, qword [0x140101ac0]
jmp 0x1400121a0
call fcn.14000d9b0
mov rax, qword [0x140101ac0]
cmp dword [rax + 0x18cc388], 2
mov dword [rax + 0x18cc38c], 0
mov dword [rax + 0x1a3672c], 1
jne 0x140012201
call fcn.14000f060
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
add rsp, 0x20
pop rdi
ret