Function at 0x4cbae8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc04
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3fc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x4cbe6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
cmp byte [eax + 0x18], 0
jne 0x4cbe4b
lea edx, [ebp - 0x14]
mov eax, dword [edi]
call fcn.004cb5a4
mov eax, dword [ebp - 0x14]
call fcn.004cb91c
mov ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.0040404c
mov al, byte [eax]
call fcn.004c8744
mov esi, eax
push 0x408
push 0x160
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [edi]
call fcn.004cb3e0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [edi]
add eax, 0x24
lea edx, [ebp - 0x1a8]
mov ecx, 0x50
call fcn.00403e38
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x158]
xor ecx, ecx
mov edx, 0x140
call fcn.00402c18
push 0x140
lea eax, [ebp - 0x158]
push eax
push 1
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3f8]
push eax
mov eax, dword [0x581990]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4cbc1b
mov ecx, dword [ebp - 0x138]
cmp ecx, 0xffffffff
jne 0x4cbbea
cmp dword [ebp - 0x13c], 0
jne 0x4cbbea
mov eax, dword [ebp - 0x14]
call fcn.00457c44
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4cbc0c
mov eax, dword [ebp - 0x13c]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, ecx
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push ebp
lea eax, [ebp - 0x144]
call fcn.004cb984
pop ecx
jmp 0x4cbc87
test bl, bl
jne 0x4cbc87
cmp esi, 2
je 0x4cbc87
lea eax, [ebp - 0x3f8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040404c
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4cbc87
test byte [ebp - 0x3f8], 0x10
jne 0x4cbc71
mov eax, dword [ebp - 0x3dc]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x3d8]
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push ebp
lea eax, [ebp - 0x3e4]
call fcn.004cb984
pop ecx
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindClose
mov eax, dword [edi]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x40], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x44], edx
mov eax, dword [edi]
fild qword [eax + 0x40]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0x3fc]
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov al, byte [eax + 0x3e6]
xor edx, edx
call fcn.004558fc
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edi]
add eax, 0x20
call fcn.00403c60
mov eax, dword [edi]
mov dword [eax + 0x2c], 0x700f0037
test bl, bl
je 0x4cbce4
cmp esi, 2
jne 0x4cbce4
mov eax, dword [edi]
and dword [eax + 0x2c], 0xfffbffff
test bl, bl
je 0x4cbcf6
cmp esi, 4
jne 0x4cbcf6
mov eax, dword [edi]
and dword [eax + 0x2c], 0xfff0ffff
mov eax, dword [edi]
add eax, 0x2c
push eax
mov eax, dword [edi]
add eax, 0xc
push eax
push 1
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3f8]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
mov eax, dword [edi]
test byte [eax + 0x2f], 0x20
setne al
mov edx, dword [edi]
mov byte [edx + 0x19], al
mov eax, dword [edi]
cmp byte [eax + 0x19], 0
je 0x4cbd41
test bl, bl
jne 0x4cbd41
mov eax, dword [ebp - 0x14]
call fcn.004564a4
test al, al
jne 0x4cbd41
mov eax, dword [edi]
mov byte [eax + 0x19], 0
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40c]
cmp byte [eax + 9], 0
je 0x4cbe45
mov eax, dword [edi]
add eax, 0x24
call fcn.00403c0c
mov eax, dword [edi]
add eax, 0x20
call fcn.00403c0c
mov eax, dword [edi]
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov eax, dword [edi]
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
test bl, bl
je 0x4cbe45
cmp esi, 2
setne bl
test bl, bl
je 0x4cbdc5
cmp esi, 4
jne 0x4cbdc3
cmp esi, 4
jne 0x4cbdbf
call fcn.004a03fc
test al, al
je 0x4cbdbf
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
mov al, byte [eax]
call fcn.004a04ac
test al, al
jne 0x4cbdc3
xor ebx, ebx
jmp 0x4cbdc5
mov bl, 1
test bl, bl
je 0x4cbe45
push 0
mov eax, dword [edi]
add eax, 0x40
push eax
mov eax, dword [edi]
add eax, 0x48
push eax
mov eax, dword [edi]
add eax, 0x1c
call fcn.00404058
push eax
mov eax, dword [0x581a54]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4cbe45
mov eax, dword [edi]
fild qword [eax + 0x40]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0x3fc]
mov dl, 1
xor eax, eax
call fcn.004558fc
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edi]
add eax, 0x24
call fcn.00403c60
mov eax, dword [edi]
fild qword [eax + 0x48]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0x3fc]
mov dl, 1
xor eax, eax
call fcn.004558fc
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edi]
add eax, 0x20
call fcn.00403c60
mov eax, dword [edi]
mov byte [eax + 0x18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbe73
lea eax, [ebp - 0x3fc]
call fcn.00403c0c
lea eax, [ebp - 0x14]
call fcn.00403c0c
ret