Function at 0x10012850
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095371
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x100c2354]
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 ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x440], edi
call fcn.1006a7b0
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.1000fb10
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jb 0x100128d2
mov eax, 0x80004005
jmp 0x10012b25
mov dword [ebp - 0x42c], 0
lea eax, [ebp - 0x42c]
mov dword [ebp - 4], 0
push eax
push 0x1009ce18
push 1
push 0
push 0x1009eff8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x10012b02
mov dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x428]
push edx
push 0x1009d028
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call dword [ecx]
mov esi, eax
test esi, esi
js 0x10012ae4
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x218]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x10012ae4
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x42c]
call fcn.1000c020
mov esi, eax
test esi, esi
js 0x10012ac6
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x43c]
push edx
push 0x1009f008
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x10012ac6
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [0x100c85c8]
mov esi, eax
mov byte [edi], 0
test esi, esi
js 0x10012a20
lea ecx, [ebp - 0x420]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100129d0
sub ecx, edi
lea edi, [ebx + 0x24]
sar ecx, 1
cmp dword [ebx + 0x38], 8
jb 0x100129eb
mov edi, dword [ebx + 0x24]
mov edx, dword [ebx + 0x34]
cmp edx, ecx
jne 0x10012a1a
lea ecx, [ebp - 0x420]
test edx, edx
je 0x10012ab9
mov eax, ecx
sub edi, eax
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x10012a1a
add ecx, 2
sub edx, 1
jne 0x10012a04
jmp 0x10012ab9
mov edi, dword [ebp - 0x440]
cmp dword [ebx + 8], 2
jne 0x10012ab4
lea eax, [ebp - 0x43c]
mov byte [edi], 1
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
cmp dword [ebx + 0x38], 8
lea eax, [ebx + 0x24]
jb 0x10012a45
mov eax, dword [eax]
lea ecx, [ebp - 0x43c]
push ecx
push eax
call fcn.1000db00
mov esi, eax
add esp, 8
test esi, esi
js 0x10012ab9
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x43c]
push edx
push 0x1009f008
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x10012ab9
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
js 0x10012ab9
mov eax, dword [ebp - 0x428]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
js 0x10012ab9
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x218]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
jmp 0x10012ab9
mov esi, 0x80004005
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov ecx, dword [ebp - 0x424]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10012ae4
mov dword [ebp - 0x424], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x428]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10012b02
mov dword [ebp - 0x428], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10012b23
mov dword [ebp - 0x42c], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, esi
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.1002ff7e
mov esp, ebp
pop ebp
ret 4