Function at 0x40cb60
Capabilities:
Check if file exists
Get common file path
Get disk information
Get file attributes
Print debug messages

Disassembly:
sub esp, 0x418
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x41c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push edi
push str.Seach_Disk_File_GetLogicalDriveStrings
mov dword [esp + 0x14], eax
lea esi, [esp + 0x220]
call ebp
mov ecx, esi
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push str.Seach_Disk_find_1
mov edi, eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x40cd2e
push str.Seach_Disk_find_2
call ebp
test edi, edi
jle 0x40cc8e
jmp 0x40cbd0
cmp word [esi], 0
je 0x40cc8e
push esi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.004dc105
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cbf4
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x12], 0x5c
jne 0x40cc28
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cc12
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x12], cx
push str.Lnvsdisk.eed
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.004db31f
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x40cc5d
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, 0x10000
je 0x40cd10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x40cd10
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cc71
sub eax, edx
sar eax, 1
inc eax
sub edi, eax
lea esi, [esi + eax*2]
test edi, edi
jg 0x40cbd0
push str.Seach_Disk_find_search_My_Document
call ebp
push 0
push 5
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ccee
push str.Lnvsdisk.eed
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.004db31f
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call ebx
cmp eax, 0xffffffff
je 0x40ccdf
lea eax, [esp + 0x14]
push eax
call ebx
test eax, 0x10000
je 0x40cdb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x40cdb6
push str.Seach_Disk_find_end
call ebp
xor eax, eax
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x104
push eax
call fcn.004dc105
add esp, 0xc
mov eax, 1
jmp 0x40ccf7
push str.Seach_Disk_find_3
call ebp
push 0x53f6e0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
jmp 0x40cd50
add word [esp + 0x21c], si
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.004dc105
push str.Lnvsdisk.eed
lea ecx, [esp + 0x24]
push 0x104
push ecx
call fcn.004db31f
add esp, 0x18
lea edx, [esp + 0x14]
push edx
call ebx
cmp eax, 0xffffffff
je 0x40cda0
lea eax, [esp + 0x14]
push eax
call ebx
test eax, 0x10000
je 0x40cdb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x40cdb6
inc esi
cmp esi, 0x1a
jb 0x40cd50
jmp 0x40cc8e
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x104
push edx
call fcn.004dc105
add esp, 0xc
mov eax, 1
jmp 0x40ccf7