Function at 0x48509c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffcc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
cmp dword [0x4ae76c], 0xffffffff
jne 0x485126
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4ae997
call sub.SHELL32.DLL_SHGetFileInfoA
mov edx, dword [ebp - 0x164]
lea ecx, [ebp - 0x568]
push 0x400
push ecx
push 0
mov dword [0x4d65f4], edx
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x4001
lea eax, [ebp - 0x168]
push 0x160
push eax
lea edx, [ebp - 0x568]
push 0
push edx
call sub.SHELL32.DLL_SHGetFileInfoA
mov ecx, dword [ebp - 0x164]
mov dword [0x4ae76c], ecx
lea eax, [ebp - 0x968]
mov ecx, 0x400
mov edx, ebx
call fcn.0040f778
lea eax, [ebp - 0x968]
mov ecx, 0x400
xor edx, edx
call fcn.0040c8bc
lea ebx, [ebp - 0x968]
xor eax, eax
mov al, byte [esi]
cmp eax, 0x2e
jne 0x485166
xor edx, edx
mov dl, byte [esi + 1]
cmp edx, 0x5c
jne 0x485166
add esi, 2
cmp byte [esi], 0
setne cl
and ecx, 1
xor eax, eax
mov byte [ebp - 5], cl
xor edx, edx
mov dword [ebp - 0x990], 3
mov dword [ebp - 0x98c], 0x40000000
mov dword [ebp - 0x988], eax
mov dl, byte [ebx]
cmp edx, 0x2e
jne 0x4851a4
xor ecx, ecx
mov cl, byte [ebx + 1]
cmp ecx, 0x5c
jne 0x4851a4
add ebx, 2
mov dword [ebp - 0x97c], ebx
cmp byte [ebp - 5], 0
je 0x485241
lea eax, [ebp - 0xef0]
mov edx, 0x400
call fcn.00464700
lea eax, [ebp - 0xef0]
call fcn.0040c35c
push str.raricotemp_
lea edx, [ebp - 0xef0]
push edx
call fcn.00498da0
add esp, 8
mov eax, ebx
call fcn.0040be48
push eax
lea edx, [ebp - 0xef0]
push edx
call fcn.00498da0
add esp, 8
lea ecx, [ebp - 0xef0]
push 0
push 0x4000100
push 4
push 0
push 0
push 0xc0000000
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
push 0x4001
push 0x160
lea eax, [ebp - 0xaf0]
push eax
push 0
lea edx, [ebp - 0xef0]
push edx
call sub.SHELL32.DLL_SHGetFileInfoA
push edi
call sub.KERNEL32.DLL_CloseHandle
jmp 0x48525a
push 0x4001
push 0x160
lea ecx, [ebp - 0xaf0]
push ecx
push 0
push ebx
call sub.SHELL32.DLL_SHGetFileInfoA
mov eax, dword [ebp - 0xaec]
mov dword [ebp - 0x974], eax
cmp byte [ebp - 5], 0
je 0x485281
lea edx, [ebp - 0x12f0]
mov eax, esi
call fcn.0040acd8
lea esi, [ebp - 0x12f0]
jmp 0x4852d0
push ebx
lea eax, [ebp - 0x12f0]
push eax
call fcn.00498e7c
add esp, 8
lea eax, [ebp - 0x12f0]
call fcn.0040c42c
cmp byte [ebp - 0x12f0], 0
je 0x4852ad
lea eax, [ebp - 0x12f0]
jmp 0x4852b2
mov eax, 0x4ae997
lea edx, [ebp - 0x12f0]
call fcn.0040acd8
lea esi, [ebp - 0x12f0]
mov eax, ebx
call fcn.0040be48
mov dword [ebp - 0x97c], eax
push 0x66
push dword [0x4c6ef8]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
lea eax, [ebp - 0x990]
push eax
push 0
push 0x1007
push ebx
call sub.USER32.DLL_SendMessageA
mov edi, eax
mov dword [ebp - 0x990], 3
mov dword [ebp - 0x98c], edi
mov dword [ebp - 0x988], 1
mov dword [ebp - 0x97c], esi
cmp byte [ebp - 5], 0
je 0x485322
mov eax, dword [0x4ae76c]
jmp 0x485327
mov eax, dword [0x4d65f4]
mov dword [ebp - 0x974], eax
lea edx, [ebp - 0x990]
push edx
push 0
push 0x1006
push ebx
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x1310], 2
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1318]
mov dword [ebp - 0x1304], ecx
push eax
push edi
push 0x102e
push ebx
call sub.USER32.DLL_SendMessageA
test edi, edi
jne 0x485393
mov dword [ebp - 0x1330], 1
mov dword [ebp - 0x1334], 1
lea edx, [ebp - 0x1340]
push edx
push 0
push 0x102b
push ebx
call sub.USER32.DLL_SendMessageA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret