Function at 0x100be840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101695c7
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x270], eax
cmp dword [esi + 0x10], 0
je 0x100bef54
mov ecx, esi
call fcn.1007fa30
test al, al
je 0x100bef54
cmp dword [esi + 0x14], 8
jb 0x100be89a
mov esi, dword [esi]
push 0x10196660
push esi
call fcn.101531ee
mov edi, eax
add esp, 8
mov dword [ebp - 0x274], edi
test edi, edi
je 0x100bef54
push 0
push 0
push edi
mov byte [ebp - 0x269], 1
call fcn.10132b42
add esp, 0xc
test eax, eax
jne 0x100bef3c
push edi
push 0x4c
lea eax, [ebp - 0x268]
push 1
push eax
call fcn.10132757
add esp, 0x10
cmp eax, 0x4c
jne 0x100bef3c
cmp dword [ebp - 0x268], eax
jne 0x100bef3c
mov ecx, dword [ebp - 0x254]
mov eax, ecx
shr eax, 7
and al, 1
mov byte [ebp - 0x278], al
test cl, 1
je 0x100bead5
push edi
push 1
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push 2
push eax
call fcn.10132757
add esp, 0x10
cmp eax, 1
jne 0x100bef3c
mov eax, dword [ebp - 0x21c]
test ax, ax
je 0x100bef3c
movzx eax, ax
push eax
call fcn.1010d01c
movzx ecx, word [ebp - 0x21c]
mov esi, eax
push ecx
push 0
push esi
call fcn.10124cd0
movzx ecx, word [ebp - 0x21c]
push edi
push ecx
push 1
push esi
call fcn.10132757
movzx ecx, word [ebp - 0x21c]
add esp, 0x20
cmp eax, ecx
je 0x100be9ad
push esi
mov byte [ebp - 0x269], 0
call fcn.1010d017
add esp, 4
push edi
call fcn.1013227b
mov al, byte [ebp - 0x269]
add esp, 4
jmp 0x100bef56
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10124cd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100be9f9
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100be9e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x100bea27
movzx edi, word [esi]
add edi, 8
push 0x1000
add edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x100bea32
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bea16
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, dword [ebp - 0x270]
call fcn.10003600
mov eax, dword [ebp - 0x21c]
xor edi, edi
movzx edx, ax
xor ecx, ecx
cmp edx, 3
jb 0x100beac6
nop dword [eax + eax]
mov ax, word [ecx + esi]
mov word [ebp - 0x292], ax
mov al, byte [ecx + esi + 2]
add ecx, 3
cmp al, 0x61
jne 0x100beaab
cmp ecx, edx
ja 0x100beac6
cmp byte [ecx + esi], 0x80
jne 0x100beaab
add ecx, 5
cmp ecx, edx
ja 0x100beac6
lea edx, [ecx + esi]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x298], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bea85
sub ecx, dword [ebp - 0x298]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x270]
push edx
lea ecx, [ecx + 0x90]
call fcn.10003600
movzx eax, word [ebp - 0x292]
add edi, eax
mov eax, dword [ebp - 0x21c]
movzx edx, ax
mov ecx, edi
lea eax, [edi + 3]
cmp eax, edx
jbe 0x100bea50
push esi
call fcn.1010d017
mov edi, dword [ebp - 0x274]
add esp, 4
push edi
call fcn.101403b9
mov ecx, dword [ebp - 0x254]
add esp, 4
mov esi, eax
test cl, 2
je 0x100beb2c
push edi
push 1
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push 4
push eax
call fcn.10132757
add esp, 0x10
cmp eax, 1
jne 0x100bef3c
mov eax, dword [ebp - 0x21c]
push 0
add eax, esi
push eax
push edi
call fcn.10132b42
mov ecx, dword [ebp - 0x254]
add esp, 0xc
test cl, 4
je 0x100bebfb
push dword [ebp - 0x278]
mov edx, edi
lea ecx, [ebp - 0x290]
call fcn.100bef90
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x270]
add edi, 0x18
cmp edi, esi
je 0x100beb8b
mov ecx, edi
call fcn.10003590
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x100bebd2
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100bebc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bef73
push edx
push ecx
call fcn.1010cf95
add esp, 8
mov ecx, dword [ebp - 0x254]
xor eax, eax
mov edi, dword [ebp - 0x274]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
test cl, 8
je 0x100becc4
push dword [ebp - 0x278]
mov edx, edi
lea ecx, [ebp - 0x290]
call fcn.100bef90
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x270]
add edi, 0x30
cmp edi, esi
je 0x100bec5a
mov ecx, edi
call fcn.10003590
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x100beca1
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100bec97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bef78
push edx
push ecx
call fcn.1010cf95
add esp, 8
mov ecx, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
test cl, 0x10
je 0x100bed91
push dword [ebp - 0x278]
mov edx, dword [ebp - 0x274]
lea ecx, [ebp - 0x290]
call fcn.100bef90
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x270]
add edi, 0x48
cmp edi, esi
je 0x100bed27
mov ecx, edi
call fcn.10003590
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x100bed6e
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100bed64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bef7d
push edx
push ecx
call fcn.1010cf95
add esp, 8
mov ecx, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
test cl, 0x20
je 0x100bee5e
push dword [ebp - 0x278]
mov edx, dword [ebp - 0x274]
lea ecx, [ebp - 0x290]
call fcn.100bef90
add esp, 4
mov esi, eax
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x270]
add edi, 0x60
cmp edi, esi
je 0x100bedf4
mov ecx, edi
call fcn.10003590
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x100bee3b
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100bee31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bef82
push edx
push ecx
call fcn.1010cf95
add esp, 8
mov ecx, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
test cl, 0x40
je 0x100bef25
push dword [ebp - 0x278]
mov edx, dword [ebp - 0x274]
lea ecx, [ebp - 0x290]
call fcn.100bef90
add esp, 4
mov esi, eax
mov dword [ebp - 4], 4
mov edi, dword [ebp - 0x270]
add edi, 0x78
cmp edi, esi
je 0x100beec1
mov ecx, edi
call fcn.10003590
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x100bef08
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100beefe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bef87
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov edi, dword [ebp - 0x274]
push edi
call fcn.1013227b
mov al, byte [ebp - 0x269]
add esp, 4
jmp 0x100bef56
push edi
mov byte [ebp - 0x269], 0
call fcn.1013227b
mov al, byte [ebp - 0x269]
add esp, 4
jmp 0x100bef56
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret 8
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
int3