Function at 0x4f2ccc
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 0x4f3050
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
cmp byte [eax + 0x18], 0
jne 0x4f302f
lea edx, [ebp - 0x14]
mov eax, dword [edi]
call fcn.004f27f0
mov eax, dword [ebp - 0x14]
call fcn.0046c6b8
mov ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.004040dc
mov al, byte [eax]
call fcn.004ef92c
mov esi, eax
push 0x408
push 0x160
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [edi]
call fcn.004f262c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [edi]
add eax, 0x24
lea edx, [ebp - 0x1a8]
mov ecx, 0x50
call fcn.00403ec8
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 + 0x400]
push eax
mov eax, dword [0x5bbbc4]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4f2dff
mov ecx, dword [ebp - 0x138]
cmp ecx, 0xffffffff
jne 0x4f2dce
cmp dword [ebp - 0x13c], 0
jne 0x4f2dce
mov eax, dword [ebp - 0x14]
call fcn.0046b324
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4f2df0
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.004f2b68
pop ecx
jmp 0x4f2e6b
test bl, bl
jne 0x4f2e6b
cmp esi, 2
je 0x4f2e6b
lea eax, [ebp - 0x3f8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004040dc
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4f2e6b
test byte [ebp - 0x3f8], 0x10
jne 0x4f2e55
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.004f2b68
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 + 0x3ee]
xor edx, edx
call fcn.00468ed0
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edi]
add eax, 0x20
call fcn.00403cf0
mov eax, dword [edi]
mov dword [eax + 0x2c], 0x700f0037
test bl, bl
je 0x4f2ec8
cmp esi, 2
jne 0x4f2ec8
mov eax, dword [edi]
and dword [eax + 0x2c], 0xfffbffff
test bl, bl
je 0x4f2eda
cmp esi, 4
jne 0x4f2eda
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 + 0x400]
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 0x4f2f25
test bl, bl
jne 0x4f2f25
mov eax, dword [ebp - 0x14]
call fcn.00469ac4
test al, al
jne 0x4f2f25
mov eax, dword [edi]
mov byte [eax + 0x19], 0
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x414]
cmp byte [eax + 9], 0
je 0x4f3029
mov eax, dword [edi]
add eax, 0x24
call fcn.00403c9c
mov eax, dword [edi]
add eax, 0x20
call fcn.00403c9c
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 0x4f3029
cmp esi, 2
setne bl
test bl, bl
je 0x4f2fa9
cmp esi, 4
jne 0x4f2fa7
cmp esi, 4
jne 0x4f2fa3
call fcn.004cdd4c
test al, al
je 0x4f2fa3
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
mov al, byte [eax]
call fcn.004cddfc
test al, al
jne 0x4f2fa7
xor ebx, ebx
jmp 0x4f2fa9
mov bl, 1
test bl, bl
je 0x4f3029
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.004040e8
push eax
mov eax, dword [0x5bbc90]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4f3029
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.00468ed0
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edi]
add eax, 0x24
call fcn.00403cf0
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.00468ed0
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edi]
add eax, 0x20
call fcn.00403cf0
mov eax, dword [edi]
mov byte [eax + 0x18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3057
lea eax, [ebp - 0x3fc]
call fcn.00403c9c
lea eax, [ebp - 0x14]
call fcn.00403c9c
ret