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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb822
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x44]
push eax
mov esi, ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
movzx edi, word [esi + 4]
mov eax, dword [0x4d229c]
mov ecx, dword [0x4d22a0]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], edi
mov word [ebp - 0x1c], di
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4661a5
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00466ef0
test eax, eax
je 0x4661a5
push 0x4f045e
push 0x444
mov word [ebx + 0x18], di
call fcn.00493709
add esp, 8
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4660a1
mov edi, esi
mov esi, eax
call fcn.00464f00
mov edi, dword [ebp - 0x30]
mov esi, eax
jmp 0x4660a3
xor esi, esi
mov byte [ebp - 4], 0
test esi, esi
jne 0x4660d4
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4660cb
mov edx, dword [ebx + 0x10]
push edx
push 8
lea ecx, [ebp - 0x28]
push ecx
push 3
mov word [ebp - 0x28], di
mov dword [ebp - 0x24], 1
call eax
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x4661c9
lea eax, [esi + 8]
lea edi, [ebp - 0x1c]
mov edx, 0x104
sub edi, eax
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x466101
movzx ecx, word [edi + eax]
test cx, cx
je 0x466101
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4660e1
jmp 0x466105
test edx, edx
jne 0x466108
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov edi, ebx
mov dword [esi], eax
mov dword [esi + 0x43c], ebx
call fcn.004661f0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x466183
mov ecx, dword [ebp - 0x30]
push ecx
push ebx
call fcn.00465c20
lea edi, [ebx + 0xb0]
push edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
mov dx, word [ebp - 0x30]
lea ecx, [ebp - 0x40]
push ecx
add ebx, 0x90
push ebx
mov word [ebp - 0x34], dx
mov dword [ebp - 0x30], esi
call fcn.004677c0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x20]
jmp 0x4661d1
mov edi, esi
call fcn.00465710
mov edx, dword [ebp - 0x30]
push 3
mov ecx, ebx
call fcn.004665f0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x20]
jmp 0x4661d1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4661c5
mov ecx, dword [ebx + 0x10]
push ecx
push 8
lea edx, [ebp - 0x28]
push edx
push 3
mov word [ebp - 0x28], di
mov dword [ebp - 0x24], 2
call eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret 4