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

Disassembly:
push 0xffffffffffffffff
push 0x426318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x24]
lea ecx, [ebp + 0x6dc]
push eax
mov dword [esp + 0x20], 0
call fcn.004198e0
mov edx, dword [esp + 0x24]
lea ecx, [ebp + 0x2c]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x40b0b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40b39a
mov edi, str.Device_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x22c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x40b0ad
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
mov byte [ebp + 0x2cc], 1
jmp 0x40b0bd
mov byte [ebp + 0x2cc], 0
mov edi, str.._
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x27c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
push 3
push 0x80000000
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x2d4], eax
jne 0x40b144
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
lea edi, [ebp + 0x2d0]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [ebp + 0x2dc]
push edi
push 0x400
lea ebx, [ebp + 0x2d8]
push ecx
push 4
push ebx
push 0x170002
push eax
mov dword [ebx], 0x10101
call esi
test eax, eax
jne 0x40b195
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
mov eax, dword [edi]
test eax, eax
jne 0x40b1b6
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
jbe 0x40b208
mov eax, 0xfffffd22
lea esi, [ebp + 0x2de]
sub eax, ebp
mov dword [esp + 0x10], eax
movsx ecx, byte [esi + 1]
movsx edx, byte [esi]
movsx eax, byte [esi - 1]
shl ecx, 8
add ecx, edx
movsx edx, byte [esi - 2]
shl ecx, 8
add ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 8
add ecx, edx
push ecx
push eax
mov ecx, ebp
call fcn.00418278
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
add esi, 4
add ecx, esi
cmp ecx, eax
jb 0x40b1c9
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp + 0x2d4]
push 0
push edi
lea edx, [ebp + 0x14]
push 4
push edx
push 4
push ebx
push 0x170002
push eax
mov dword [ebx], 0x10107
call esi
test eax, eax
jne 0x40b247
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
cmp dword [edi], 4
je 0x40b267
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
mov ecx, dword [ebp + 0x2d4]
push 0
lea eax, [ebp + 0x18]
push edi
push 4
push eax
push 4
push ebx
push 0x170002
push ecx
mov dword [ebx], 0x1010c
mov dword [eax], 0
call esi
test eax, eax
jne 0x40b2ac
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
cmp dword [edi], 4
je 0x40b2cc
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
mov edx, dword [ebp + 0x2d4]
push 0
push edi
lea esi, [ebp + 0x2dc]
push 0x400
push esi
push 4
push ebx
push 0x170002
push edx
mov dword [ebx], 0x1010d
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40b315
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
cmp dword [edi], 0
jne 0x40b335
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
push esi
lea ecx, [ebp + 0x1c]
call fcn.0041992f
lea ecx, [ebp + 0x28]
push str.000000
mov dword [ebx], 0x1010102
mov dword [edi], 0
mov dword [esp + 0x14], ecx
call fcn.0041992f
mov eax, dword [ebp + 0x2d4]
push 0
push edi
push 0x400
push esi
push 4
push ebx
push 0x170002
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40b395
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
cmp dword [edi], 6
je 0x40b3b2
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
mov eax, 0xa
jmp 0x40b3dc
xor ebx, ebx
mov cl, byte [ebx + esi]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00419c8e
mov eax, dword [edi]
inc ebx
cmp ebx, eax
jb 0x40b3b4
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004197e7
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 4