Function at 0x1000bef0
Capabilities:
Get file attributes
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020b50
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1002d900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi + 0x2c], 0
mov eax, 0x2aaaaaab
mov dword [esi + 0x30], 0
mov ecx, dword [esi + 0x24]
sub ecx, dword [esi + 0x20]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1000c5e3
mov ecx, dword [esi + 0x24]
mov eax, 0x2aaaaaab
sub ecx, dword [esi + 0x20]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x1000c1b1
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0xffffffffffffffff
push eax
push dword [esi + 0x20]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.100034e0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1000bfc1
cmp dword [ebp - 0x30], 3
jbe 0x1000c169
or dword [esi + 0x30], 0x3f
mov dword [esi + 0x2c], 0x3f
jmp 0x1000c197
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x40]
push eax
call fcn.100034e0
lea eax, [ebp - 0x28]
push eax
call fcn.10004520
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x10022d98
call fcn.10002df0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022cc0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 0x2c
test eax, eax
jne 0x1000c031
or dword [esi + 0x30], 1
mov dword [esi + 0x2c], 1
jmp 0x1000c186
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022cc8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c182
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.docx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c182
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022d1c
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c17c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.pptx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c17c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022cdc
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c176
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.xlsx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c176
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022d08
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
jne 0x1000c11a
or dword [esi + 0x30], 0x10
jmp 0x1000c186
mov edi, 0x1002d260
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x1000c12b
mov ecx, dword [edi]
jmp 0x1000c12d
mov ecx, edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c156
add ebx, 0x18
add edi, 0x18
cmp ebx, 0xc0
jb 0x1000c121
jmp 0x1000c186
or dword [esi + 0x30], 0x20
lea ecx, [ebp - 0x28]
mov dword [esi + 0x2c], 0x20
call fcn.10002dc0
lea ecx, [ebp - 0x40]
call fcn.10002dc0
jmp 0x1000c5e3
or dword [esi + 0x30], 8
jmp 0x1000c186
or dword [esi + 0x30], 4
jmp 0x1000c186
or dword [esi + 0x30], 2
cmp dword [ebp - 0x14], 8
jb 0x1000c197
push dword [ebp - 0x28]
call fcn.1001110f
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x1000c5e3
push dword [ebp - 0x40]
call fcn.1001110f
add esp, 4
jmp 0x1000c5e3
xor ecx, ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x24]
xor ebx, ebx
sub ecx, dword [esi + 0x20]
xor edi, edi
imul ecx
mov dword [ebp - 0x6c], ebx
sar edx, 2
mov eax, edx
mov dword [ebp - 0x64], edi
shr eax, 0x1f
add eax, edx
je 0x1000c21a
mov dword [ebp - 0x60], ebx
mov eax, dword [esi + 0x20]
add eax, ebx
cmp dword [eax + 0x14], 8
jb 0x1000c1f0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
mov eax, dword [esi + 0x20]
je 0x1000c236
cmp dword [ebx + eax + 0x10], 3
jbe 0x1000c51a
mov dword [esi + 0x2c], 0x3f
mov dword [esi + 0x30], 0x3f
mov ebx, dword [ebp - 0x6c]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1000c5e3
cmp eax, 1
jne 0x1000c548
mov dword [esi + 0x30], eax
jmp 0x1000c586
xor ecx, ecx
mov dword [ebp - 0x44], 7
push 0xffffffffffffffff
push ecx
add eax, ebx
mov word [ebp - 0x58], cx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
call fcn.100034e0
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x58]
push eax
call fcn.100034e0
lea eax, [ebp - 0x28]
push eax
call fcn.10004520
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x10022d98
call fcn.10002df0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022cc0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 0x2c
test eax, eax
jne 0x1000c2d9
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x5c], 1
test al, 1
jne 0x1000c4dd
or eax, 1
jmp 0x1000c4da
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022cc8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c4d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.docx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c4d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022d1c
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c4c4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.pptx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c4c4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022cdc
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c4b8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.xlsx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c4b8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10022d08
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
jne 0x1000c3cf
mov eax, dword [esi + 0x30]
test al, 0x10
jne 0x1000c4dd
or eax, 0x10
jmp 0x1000c4da
mov edi, 0x1002d260
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x1000c3e0
mov ecx, dword [edi]
jmp 0x1000c3e2
mov ecx, edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c40b
add ebx, 0x18
add edi, 0x18
cmp ebx, 0xc0
jb 0x1000c3d6
jmp 0x1000c41f
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x64], 1
test al, 0x20
jne 0x1000c41f
or eax, 0x20
mov dword [esi + 0x30], eax
mov edi, 0x1002d1b8
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x1000c430
mov ecx, dword [edi]
jmp 0x1000c432
mov ecx, edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c45b
add ebx, 0x18
add edi, 0x18
cmp ebx, 0xa8
jb 0x1000c426
jmp 0x1000c462
mov dword [ebp - 0x6c], 1
mov edi, 0x1002d260
xor ebx, ebx
lea esp, [esp]
cmp dword [edi + 0x14], 8
jb 0x1000c47a
mov ecx, dword [edi]
jmp 0x1000c47c
mov ecx, edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10012abb
add esp, 8
test eax, eax
je 0x1000c4ab
add ebx, 0x18
add edi, 0x18
cmp ebx, 0xc0
jb 0x1000c470
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
jmp 0x1000c4dd
mov ebx, dword [ebp - 0x60]
mov edi, 1
mov dword [ebp - 0x64], edi
jmp 0x1000c4dd
mov eax, dword [esi + 0x30]
test al, 8
jne 0x1000c4dd
or eax, 8
jmp 0x1000c4da
mov eax, dword [esi + 0x30]
test al, 4
jne 0x1000c4dd
or eax, 4
jmp 0x1000c4da
mov eax, dword [esi + 0x30]
test al, 2
jne 0x1000c4dd
or eax, 2
mov dword [esi + 0x30], eax
cmp dword [ebp - 0x14], 8
jb 0x1000c4ee
push dword [ebp - 0x28]
call fcn.1001110f
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
jb 0x1000c51a
push dword [ebp - 0x58]
call fcn.1001110f
add esp, 4
mov ecx, dword [esi + 0x24]
mov eax, 0x2aaaaaab
sub ecx, dword [esi + 0x20]
add ebx, 0x18
inc dword [ebp - 0x68]
imul ecx
mov dword [ebp - 0x60], ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x68], eax
jne 0x1000c1e3
jmp 0x1000c217
cmp eax, 2
jne 0x1000c552
mov dword [esi + 0x30], eax
jmp 0x1000c586
cmp eax, 4
jne 0x1000c55c
mov dword [esi + 0x30], eax
jmp 0x1000c586
cmp eax, 8
jne 0x1000c566
mov dword [esi + 0x30], eax
jmp 0x1000c586
cmp eax, 0x10
jne 0x1000c570
mov dword [esi + 0x30], eax
jmp 0x1000c586
cmp eax, 0x20
jne 0x1000c57a
mov dword [esi + 0x30], eax
jmp 0x1000c586
movzx eax, al
and eax, 1
or eax, 0x3e
mov dword [esi + 0x30], eax
cmp dword [ebp - 0x5c], 0
je 0x1000c5ba
test ebx, ebx
je 0x1000c5a4
test edi, edi
mov eax, 0x1f
mov ecx, 0x3f
cmovne eax, ecx
mov dword [esi + 0x2c], eax
jmp 0x1000c5e3
test edi, edi
je 0x1000c5b1
mov dword [esi + 0x2c], 0x21
jmp 0x1000c5e3
mov dword [esi + 0x2c], 1
jmp 0x1000c5e3
test ebx, ebx
je 0x1000c5cb
test edi, edi
je 0x1000c5d8
mov dword [esi + 0x2c], 0x3e
jmp 0x1000c5e3
test edi, edi
je 0x1000c5d8
mov dword [esi + 0x2c], 0x20
jmp 0x1000c5e3
test ebx, ebx
je 0x1000c5e3
mov dword [esi + 0x2c], 0x1e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100117b4
mov esp, ebp
pop ebp
ret