Function at 0x40ea75
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x40eada
push 0xc0000000
push dword [ebp + 8]
call dword [0x496e84]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ebea
push 0x80000000
push dword [ebp + 8]
call dword [0x496e84]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ebea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40ebd7
xor eax, eax
inc eax
jmp 0x40ecb0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40eaf4
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40eb15
push esi
call edi
cmp eax, 3
jne 0x40eb13
lea eax, [esi + 2]
push 0x482740
push eax
call fcn.0046d18c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40eb15
xor eax, eax
cmp eax, ebx
je 0x40eb72
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov esi, str.._:
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push 0x20000000
movsd dword es:[edi], dword [esi]
push 3
push ebx
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
mov word [ebp - 0x1c], ax
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ebea
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call esi
jmp 0x40eab8
push 0xc0000000
push esi
call dword [0x496e88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ebea
push 0x80000000
push esi
call dword [0x496e88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ebea
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40ebd3
sub eax, 0x56
je 0x40ebd3
sub eax, 0x3a
je 0x40ebc0
sub eax, 0x7a
je 0x40ebc0
sub eax, 0x101b
je 0x40ebc0
push esi
call fcn.0040d65b
pop ecx
jmp 0x40ebd3
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x495830
call fcn.0040d5ff
add esp, 0xc
push 9
jmp 0x40ebe4
push str.Error_opening_device:
call fcn.0040d65b
pop ecx
push 2
pop eax
jmp 0x40ecb0
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0x7c0d0
push edi
mov dword [ebp - 0x34], 1
call esi
test eax, eax
jne 0x40ec2a
push dword [ebp + 0xc]
call fcn.0040d65b
pop ecx
push 3
pop ebx
jmp 0x40eca7
push ebx
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x7405c
push edi
call esi
test eax, eax
je 0x40ec5c
push ebx
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x70000
push edi
call esi
test eax, eax
jne 0x40ec7d
push dword [ebp + 0xc]
call fcn.0040d65b
push dword [ebp + 0xc]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x495830
call fcn.0040d5ff
add esp, 0x10
push 2
jmp 0x40ec27
push ebx
push dword [ebp - 0x38]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0046d380
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
push 0x900f0
push edi
mov dword [ebp - 0x10], edx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret