Function at 0x10046780
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068dc6
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x1009e118]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], ecx
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1004b350
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x444]
add edx, 8
push edx
call fcn.10043fd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0xfffffff
jb 0x10046812
xor ecx, ecx
jne 0x10046804
mov eax, 0x80004005
jmp 0x10046b86
push 4
lea ecx, [ebp - 0x42c]
call fcn.100022b0
lea ecx, [ebp - 0x42c]
call fcn.1002d7e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x42c]
call fcn.100401f0
mov eax, dword [eax]
push eax
call fcn.1003d640
add esp, 4
push eax
push 0x1006ddec
push 1
push 0
push 0x1006def0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jl 0x10046b62
push 4
lea ecx, [ebp - 0x428]
call fcn.100022b0
lea ecx, [ebp - 0x428]
call fcn.1002d7e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x480]
push ecx
lea ecx, [ebp - 0x428]
call fcn.100401f0
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x42c]
call fcn.1003d030
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jl 0x10046b53
lea ecx, [ebp - 0x428]
call fcn.100059f0
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x464], edx
push 2
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [ebp - 0x464]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jl 0x10046b53
push 4
lea ecx, [ebp - 0x424]
call fcn.100022b0
lea ecx, [ebp - 0x424]
call fcn.1002d7e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x424]
call fcn.100401f0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x42c]
call fcn.1003d0a0
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jl 0x10046b44
lea ecx, [ebp - 0x424]
call fcn.100059f0
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x468], eax
lea ecx, [ebp - 0x43c]
push ecx
push 0x1006df00
mov edx, dword [ebp - 0x44c]
push edx
call dword [ebp - 0x468]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jl 0x10046b44
mov eax, dword [0x100a3b60]
mov dword [ebp - 0x46c], eax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x43c]
push edx
call dword [ebp - 0x46c]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 8]
mov byte [eax], 0
cmp dword [ebp - 0x440], 0
jl 0x10046a0a
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x444]
add edx, 0x20
push edx
call fcn.1003cef0
add esp, 8
movzx eax, al
test eax, eax
jne 0x10046b37
mov ecx, dword [ebp + 8]
mov byte [ecx], 1
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.ole32.dll_PropVariantClear]
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x444]
add ecx, 0x20
call fcn.10043310
push eax
call fcn.10040b00
add esp, 8
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jl 0x10046b37
lea ecx, [ebp - 0x424]
call fcn.100059f0
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x470], eax
lea ecx, [ebp - 0x43c]
push ecx
push 0x1006df00
mov edx, dword [ebp - 0x450]
push edx
call dword [ebp - 0x470]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jl 0x10046b37
lea ecx, [ebp - 0x424]
call fcn.100059f0
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x454]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x454]
push edx
mov eax, dword [ecx + 0x1c]
call eax
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jl 0x10046b37
lea ecx, [ebp - 0x428]
call fcn.100059f0
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [edx + 0x10]
call ecx
test eax, eax
jl 0x10046b37
lea ecx, [ebp - 0x428]
call fcn.100059f0
mov dword [ebp - 0x45c], eax
mov edx, dword [ebp - 0x45c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x474], ecx
push 1
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x45c]
push eax
call dword [ebp - 0x474]
mov dword [ebp - 0x440], eax
lea ecx, [ebp - 0x43c]
push ecx
call dword [sym.imp.ole32.dll_PropVariantClear]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x424]
call fcn.1003fb70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.1003fb70
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x478], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.1003fb70
mov eax, dword [ebp - 0x478]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10047e30
mov esp, ebp
pop ebp
ret 4