Function at 0x40672d
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x5c], eax
push esi
lea eax, [ebp - 0x45]
mov ebx, ecx
xor esi, esi
push eax
mov dword [ebp - 0x4c], esi
mov dword [ebx], esi
mov byte [ebp - 0x45], 0
call fcn.00403857
cmp byte [ebp - 0x45], 0
pop ecx
je 0x406915
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], esi
call fcn.00403dcc
mov dword [esp], 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x406915
push esi
mov byte [esi], 0
call fcn.00403d4d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406905
cmp dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x5c]
mov esi, dword [eax]
je 0x4067c2
mov dword [ebp - 0x4c], 0x1000081
jmp 0x4067cf
mov dword [ebp - 0x4c], 0x1000007
mov dword [ebx], 1
push 0xfa0
lea ebx, [esi + 0x10]
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x50]
xor eax, eax
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [ebx], 0
je 0x406811
push ebx
call fcn.0046de55
mov edx, dword [ebp - 0x4c]
pop ecx
lea ecx, [eax + eax + 0x12]
mov dword [esi], ecx
mov dword [esi + 4], 0x4b374558
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
add esi, ecx
inc dword [edi]
mov ebx, dword [ebp - 0x50]
push ebx
mov byte [ebx], 0
call fcn.00406686
cmp byte [ebx], 0
pop ecx
je 0x4068f6
lea eax, [ebp - 0x44]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4068b4
cmp byte [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jmp 0x4068ad
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40689a
mov eax, dword [ebp - 0x54]
mov al, byte [eax]
push 0xfa0
mov byte [ebx], al
lea ebx, [esi + 0x10]
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x50]
xor eax, eax
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [ebx], 0
je 0x406897
push ebx
call fcn.0046de55
mov edx, dword [ebp - 0x4c]
pop ecx
lea ecx, [eax + eax + 0x12]
mov dword [esi], ecx
mov dword [esi + 4], 0x4b374558
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
add esi, ecx
inc dword [edi]
mov ebx, dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.0046df70
pop ecx
mov ecx, dword [ebp - 0x54]
lea eax, [ecx + eax + 1]
cmp byte [eax], 0
mov dword [ebp - 0x54], eax
jne 0x406840
jmp 0x4068f6
push 0xfa0
lea ebx, [esi + 0x10]
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x50]
xor eax, eax
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [ebx], 0
je 0x4068f6
push ebx
call fcn.0046de55
mov edx, dword [ebp - 0x4c]
pop ecx
lea ecx, [eax + eax + 0x12]
mov dword [esi], ecx
mov dword [esi + 4], 0x4b374558
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
add esi, ecx
inc dword [edi]
mov eax, dword [ebp - 0x5c]
mov dword [eax], esi
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], 1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c1d2
leave
ret