Function at 0x493660
Capabilities:
Get disk information
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x160
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x170]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x49389a
cmp dword [ebp - 0x174], 0
je 0x49389a
cmp esi, 0xffff
jbe 0x49389a
push 4
push str.SYS:
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp
add esp, 0xc
test eax, eax
jne 0x49389a
cmp byte [esi + 4], 0x3a
lea ecx, [esi + 4]
jne 0x4938ea
add esi, 5
cmp byte [esi], al
je 0x4938c6
push 0x4e537c
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
je 0x4938c6
push str.FOLDER
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
je 0x4938c6
push str.DIRECTORY
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
je 0x4938c6
push str.DRIVE
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
je 0x493843
push 0x4e53a0
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
je 0x493843
push str.FILE
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x493797
test ebx, ebx
setne al
lea eax, [eax*2 + 0x4011]
push eax
push 0x160
lea eax, [ebp - 0x170]
push eax
push 0x80
push str.file
jmp 0x493908
push 0x4e53b4
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x4937d1
test ebx, ebx
setne al
lea eax, [eax*2 + 0x4011]
push eax
push 0x160
lea eax, [ebp - 0x170]
push eax
push 0x80
push str.file.exe
jmp 0x493908
push str.SHARE
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x493808
test ebx, ebx
setne al
lea eax, [eax*2 + 0x4011]
push eax
push 0x160
lea eax, [ebp - 0x170]
push eax
push 0
push str._srv_share
jmp 0x493908
push str.COMP
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x493910
test ebx, ebx
setne al
lea eax, [eax*2 + 0x4011]
push eax
push 0x160
lea eax, [ebp - 0x170]
push eax
push 0
push str._srv
jmp 0x493908
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor esi, esi
mov dword [ebp - 0x178], eax
mov byte [ebp - 7], 0
nop dword [eax + eax]
lea ecx, [esi + 0x41]
push ecx
push str._c:_
lea eax, [ebp - 0x10]
push 9
push eax
call fcn.00482630
mov eax, dword [ebp - 0x178]
mov ecx, esi
shr eax, cl
add esp, 0x10
mov byte [ebp - 7], 0
test al, 1
je 0x493894
lea eax, [ebp - 0x10]
push eax
call ebx
cmp eax, 3
je 0x4938ad
inc esi
cmp esi, 0x20
jl 0x493860
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
push 0x4003
push 0x160
lea eax, [ebp - 0x170]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
jmp 0x493908
xor eax, eax
test ebx, ebx
setne al
lea eax, [eax*2 + 0x4011]
push eax
push 0x160
lea eax, [ebp - 0x170]
push eax
push 0x10
push 0x4e5394
jmp 0x493908
xor eax, eax
test ebx, ebx
setne al
lea eax, [eax*2 + 0x4011]
push eax
push 0x160
lea eax, [ebp - 0x170]
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [edi], eax
mov ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x16c]
mov dword [ecx], eax
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x52e82c], eax
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret