Function at 0x40c570
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521c62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc8
mov eax, dword [0x57dcc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xbb4], ecx
mov dword [ebp - 4], 0
push 0x24
call fcn.00501003
add esp, 4
mov dword [ebp - 0xb8c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0xb8c], 0
je 0x40c5d5
mov ecx, dword [ebp - 0xb8c]
call fcn.00406ad0
mov dword [ebp - 0xbb8], eax
jmp 0x40c5df
mov dword [ebp - 0xbb8], 0
mov eax, dword [ebp - 0xbb8]
mov dword [ebp - 0xb88], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xb88]
mov dword [ebp - 0x52c], ecx
lea ecx, [ebp - 0x2c]
call fcn.004221eb
mov byte [ebp - 4], 2
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x534], 0
mov edx, dword [ebp - 0x52c]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x52c]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x52c]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x10], ecx
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0x52c]
call fcn.00402b30
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x52c]
add ecx, 8
call fcn.00402b30
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x52c]
add ecx, 0xc
call fcn.00402b30
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x52c]
add ecx, 4
call fcn.00402b30
mov eax, dword [ebp - 0xbb4]
add eax, 0x170
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0042c01f
add esp, 8
lea edx, [ebp - 0x244]
push edx
call fcn.0042c43d
add esp, 4
movzx eax, word [ebp + eax*2 - 0x246]
cmp eax, 0x5c
jne 0x40c6d4
lea ecx, [ebp - 0x244]
push ecx
call fcn.0042c43d
add esp, 4
mov word [ebp + eax*2 - 0x246], 0
lea ecx, [ebp + 0xc]
call fcn.00418360
push eax
lea edx, [ebp - 0x244]
push edx
call fcn.0042bff5
add esp, 8
lea ecx, [ebp + 8]
call fcn.00418360
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0042bff5
add esp, 8
push 0
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00422280
mov dword [ebp - 0x538], eax
cmp dword [ebp - 0x538], 0
je 0x40c796
lea ecx, [ebp - 0x2c]
call fcn.004220c7
mov dword [ebp - 0x538], eax
lea edx, [ebp - 0xb94]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0042251f
mov dword [ebp - 0xbbc], eax
mov ecx, dword [ebp - 0x52c]
call fcn.00418360
push eax
mov ecx, dword [ebp - 0xbbc]
call fcn.00418360
push eax
call fcn.0042ca45
add esp, 8
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xb8d], al
lea ecx, [ebp - 0xb94]
call fcn.00402b10
movzx eax, byte [ebp - 0xb8d]
test eax, eax
je 0x40c794
mov dword [ebp - 0x534], 1
jmp 0x40c796
jmp 0x40c71b
cmp dword [ebp - 0x534], 0
jne 0x40c7cf
mov dword [ebp - 0xb98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00422211
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406c40
mov eax, dword [ebp - 0xb98]
jmp 0x40cd0e
mov dword [ebp - 0x540], 0x4400
mov ecx, dword [ebp - 0xbb4]
call fcn.005001a9
and eax, 1
jne 0x40c7f9
mov ecx, dword [ebp - 0xbb4]
call fcn.005001a9
and eax, 3
je 0x40c80a
mov ecx, dword [ebp - 0x540]
or ecx, 1
mov dword [ebp - 0x540], ecx
jmp 0x40c84a
mov ecx, dword [ebp - 0xbb4]
call fcn.005001a9
and eax, 2
je 0x40c82e
mov edx, dword [ebp - 0x540]
or edx, 0x100
mov dword [ebp - 0x540], edx
jmp 0x40c84a
mov ecx, dword [ebp - 0xbb4]
call fcn.005001a9
and eax, 1
je 0x40c84a
mov eax, dword [ebp - 0x540]
mov dword [ebp - 0x540], eax
mov ecx, dword [ebp - 0x52c]
cmp dword [ecx + 0x18], 0x10
jne 0x40c8a2
lea edx, [ebp - 0xb9c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0042247c
mov dword [ebp - 0xbc0], eax
mov eax, dword [ebp - 0x540]
push eax
push 0x2b4
lea ecx, [ebp - 0x4fc]
push ecx
push 0
mov ecx, dword [ebp - 0xbc0]
call fcn.00418360
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 0xb9c]
call fcn.00402b10
jmp 0x40c961
lea edx, [ebp - 0xba0]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00422249
mov dword [ebp - 0xbc4], eax
mov ecx, dword [ebp - 0xbc4]
call fcn.00418360
push eax
lea eax, [ebp - 0x74c]
push eax
call fcn.0042c01f
add esp, 8
lea ecx, [ebp - 0xba0]
call fcn.00402b10
lea ecx, [ebp - 0x74c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [ebp - 0x52c]
add ecx, 8
call fcn.00418360
push eax
lea edx, [ebp - 0x74c]
push edx
call fcn.0042c01f
add esp, 8
mov word [ebp - 0x94c], 0
lea eax, [ebp - 0x94c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x74c]
push ecx
call fcn.0042ca77
add esp, 0x14
mov edx, dword [ebp - 0x540]
or edx, 0x10
mov dword [ebp - 0x540], edx
mov eax, dword [ebp - 0x540]
push eax
push 0x2b4
lea ecx, [ebp - 0x4fc]
push ecx
push 0x80
lea edx, [ebp - 0x94c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 0x500]
call fcn.00402a80
mov byte [ebp - 4], 3
push 0xffffffffffffffff
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040ed90
push 0x531db4
lea ecx, [ebp - 0xba4]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040ef40
mov dword [ebp - 0xbc8], eax
mov edx, dword [ebp - 0xbc8]
mov dword [ebp - 0xbcc], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xbcc]
push eax
lea ecx, [ebp - 0x500]
call fcn.00402b30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xba4]
call fcn.00402b10
call fcn.00409420
mov dword [ebp - 0x530], eax
mov dword [ebp - 0x528], 7
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x524], ecx
mov dword [ebp - 0x520], 0
mov ecx, dword [ebp - 0x52c]
add ecx, 8
call fcn.00418360
mov dword [ebp - 0x514], eax
mov dword [ebp - 0x510], 0x104
mov edx, dword [ebp - 0x4f8]
mov dword [ebp - 0x50c], edx
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x508], eax
lea ecx, [ebp - 0x528]
push ecx
mov ecx, dword [ebp - 0xbb4]
call fcn.0040f030
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jl 0x40ccd4
mov edx, dword [ebp - 0x52c]
cmp dword [edx + 0x18], 0x10
je 0x40cb7d
mov dword [ebp - 0x97c], 0
mov dword [ebp - 0x978], 0
push 0x531dd8
lea ecx, [ebp - 0x950]
call fcn.00402aa0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00422101
add eax, 0x3ff
adc edx, 0
push 0
push 0x400
push edx
push eax
call fcn.0042cf50
mov dword [ebp - 0x97c], eax
mov dword [ebp - 0x978], edx
push 0xf
lea eax, [ebp - 0x970]
push eax
mov ecx, dword [ebp - 0x978]
push ecx
mov edx, dword [ebp - 0x97c]
push edx
mov ecx, dword [ebp - 0xbb4]
call fcn.0040e410
push 0x97
lea ecx, [ebp - 0xba8]
call fcn.00402aa0
mov dword [ebp - 0xbd0], eax
mov eax, dword [ebp - 0xbd0]
mov dword [ebp - 0xbd4], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xbd4]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x970]
push eax
push str._s__s
lea ecx, [ebp - 0x950]
push ecx
call fcn.004046f0
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xba8]
call fcn.00402b10
mov edx, dword [ebp - 0xbb4]
cmp dword [edx + 0x580], 0
je 0x40cb51
lea ecx, [ebp - 0x950]
call fcn.00418360
push eax
push 2
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xbb4]
call fcn.004faade
jmp 0x40cb6e
lea ecx, [ebp - 0x950]
call fcn.00418360
push eax
push 1
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0xbb4]
call fcn.004faade
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x950]
call fcn.00402b10
mov edx, dword [ebp - 0xbb4]
cmp dword [edx + 0x580], 0
je 0x40cc4d
mov eax, dword [ebp - 0xbb4]
add eax, 0x170
push eax
lea ecx, [ebp - 0xb84]
push ecx
call fcn.0042c01f
add esp, 8
lea edx, [ebp - 0xb84]
push edx
call fcn.0042c43d
add esp, 4
movzx eax, word [ebp + eax*2 - 0xb86]
cmp eax, 0x5c
jne 0x40cbe0
lea ecx, [ebp - 0xb84]
push ecx
call fcn.0042c43d
add esp, 4
mov word [ebp + eax*2 - 0xb86], 0
mov ecx, dword [ebp - 0x52c]
add ecx, 0xc
call fcn.00418360
push eax
lea edx, [ebp - 0xb84]
push edx
call fcn.0042bff5
add esp, 8
lea eax, [ebp - 0xb84]
push eax
push 1
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0xbb4]
call fcn.004faade
lea edx, [ebp - 0x2e8]
push edx
push 3
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xbb4]
call fcn.004faade
lea ecx, [ebp - 0x500]
call fcn.00418360
push eax
push 4
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0xbb4]
call fcn.004faade
jmp 0x40cc82
lea edx, [ebp - 0x2e8]
push edx
push 2
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xbb4]
call fcn.004faade
lea ecx, [ebp - 0x500]
call fcn.00418360
push eax
push 3
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0xbb4]
call fcn.004faade
mov edx, dword [ebp - 0x52c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xbb4]
call fcn.0040f000
mov dword [ebp - 0xbac], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x500]
call fcn.00402b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00422211
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406c40
mov eax, dword [ebp - 0xbac]
jmp 0x40cd0e
mov dword [ebp - 0xbb0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x500]
call fcn.00402b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00422211
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406c40
mov eax, dword [ebp - 0xbb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b9ea
mov esp, ebp
pop ebp
ret 0x28