Function at 0x4c47bc
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 0x4c4b40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
cmp byte [eax + 0x18], 0
jne 0x4c4b1f
lea edx, [ebp - 0x14]
mov eax, dword [edi]
call fcn.004c42e0
mov eax, dword [ebp - 0x14]
call fcn.00459030
mov ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.0040404c
mov al, byte [eax]
call fcn.004c1480
mov esi, eax
push 0x408
push 0x160
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [edi]
call fcn.004c411c
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 + 0x400]
push eax
mov eax, dword [0x585a6c]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4c48ef
mov ecx, dword [ebp - 0x138]
cmp ecx, 0xffffffff
jne 0x4c48be
cmp dword [ebp - 0x13c], 0
jne 0x4c48be
mov eax, dword [ebp - 0x14]
call fcn.00457c9c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x4c48e0
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.004c4658
pop ecx
jmp 0x4c495b
test bl, bl
jne 0x4c495b
cmp esi, 2
je 0x4c495b
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 0x4c495b
test byte [ebp - 0x3f8], 0x10
jne 0x4c4945
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.004c4658
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.004558d4
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 0x4c49b8
cmp esi, 2
jne 0x4c49b8
mov eax, dword [edi]
and dword [eax + 0x2c], 0xfffbffff
test bl, bl
je 0x4c49ca
cmp esi, 4
jne 0x4c49ca
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 0x4c4a15
test bl, bl
jne 0x4c4a15
mov eax, dword [ebp - 0x14]
call fcn.0045647c
test al, al
jne 0x4c4a15
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 0x4c4b19
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 0x4c4b19
cmp esi, 2
setne bl
test bl, bl
je 0x4c4a99
cmp esi, 4
jne 0x4c4a97
cmp esi, 4
jne 0x4c4a93
call fcn.0049ff70
test al, al
je 0x4c4a93
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
mov al, byte [eax]
call fcn.0049ffec
test al, al
jne 0x4c4a97
xor ebx, ebx
jmp 0x4c4a99
mov bl, 1
test bl, bl
je 0x4c4b19
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 [0x585b30]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4c4b19
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.004558d4
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.004558d4
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 0x4c4b47
lea eax, [ebp - 0x3fc]
call fcn.00403c0c
lea eax, [ebp - 0x14]
call fcn.00403c0c
ret