Function at 0x40f217
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4c8d78
call fcn.00497040
sub esp, 0x2bc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x507dd8
mov edi, dword [esi + 0x24]
push dword [edi + 0xc]
lea ebx, [edi + 0xc]
call fcn.0040e9a8
test byte [esi], 1
mov dword [ebp - 0x14], eax
je 0x40f31e
mov eax, dword [0x5035a0]
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test byte [edi + 0x1c], 0x20
je 0x40f2c2
lea eax, [ebp - 0x10]
lea ecx, [edi + 8]
push eax
call fcn.0040f487
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004b22ed
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004b21a6
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x40f2c2
test byte [edi + 0x1c], 0x10
jne 0x40f2c2
push 0x5c
lea ecx, [ebp + 8]
call fcn.004af741
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.004af64d
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004b22ed
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004b21a6
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x40f303
lea eax, [edi + 8]
push 0x208
neg eax
sbb eax, eax
lea ecx, [ebp - 0x2c8]
and eax, ebx
push 0x2b4
push ecx
push 0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40f303
lea eax, [ebp - 0x2bc]
lea ecx, [ebp + 8]
push eax
call fcn.004b233d
push dword [esi + 0x14]
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004b21a6
mov eax, dword [edi + 4]
test eax, eax
je 0x40f40f
cmp dword [edi + 0x20], 0
jne 0x40f34c
lea edx, [ebp + 8]
mov dword [ebp + 8], 0x22038000
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp + 8]
mov dword [edi + 0x20], eax
mov eax, dword [esi]
mov ebx, 0x20000000
test al, 0x22
je 0x40f3c7
test byte [edi + 0x21], 0x80
je 0x40f369
or dword [esi + 0xc], 4
or al, 8
or dword [esi + 8], 4
mov dword [esi], eax
mov eax, dword [edi + 0x20]
test eax, 0x20000
je 0x40f381
mov eax, dword [esi + 8]
or dword [esi], 8
and ah, 0xf1
or ah, 1
jmp 0x40f394
test eax, 0x10000
je 0x40f39b
mov eax, dword [esi + 8]
or dword [esi], 8
and ah, 0xf2
or ah, 2
or byte [esi + 0xd], 0xf
mov dword [esi + 8], eax
test byte [esi], 2
je 0x40f3b0
push 1
lea ecx, [edi + 8]
call fcn.0040f43c
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
test byte [esi], 0x20
je 0x40f3c7
test dword [edi + 0x20], ebx
je 0x40f3c7
push 3
lea ecx, [edi + 8]
call fcn.0040f43c
mov dword [esi + 0x1c], eax
test byte [esi], 0x40
je 0x40f42b
and dword [esi + 0x20], 0
mov eax, dword [edi + 0x20]
test ebx, eax
je 0x40f42b
test byte [edi + 0x1c], 1
jne 0x40f424
test eax, 0x2000000
jne 0x40f424
mov eax, dword [edi + 4]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], SysStringLen
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
or dword [edi + 0x20], eax
mov edi, dword [edi + 0x20]
shr edi, 0x1f
mov dword [esi + 0x20], edi
jmp 0x40f42b
test byte [esi], 2
je 0x40f424
push 1
lea ecx, [edi + 8]
call fcn.0040f43c
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4