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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bacf2
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4e9688]
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 [0x4d0e44]
mov ecx, dword [0x4d0e48]
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 0x4654a5
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004661f0
test eax, eax
je 0x4654a5
push 0x4ef3fe
push 0x444
mov word [ebx + 0x18], di
call fcn.00492bc8
add esp, 8
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4653a1
mov edi, esi
mov esi, eax
call fcn.00464210
mov edi, dword [ebp - 0x30]
mov esi, eax
jmp 0x4653a3
xor esi, esi
mov byte [ebp - 4], 0
test esi, esi
jne 0x4653d4
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4653cb
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 0x4654c9
lea eax, [esi + 8]
lea edi, [ebp - 0x1c]
mov edx, 0x104
sub edi, eax
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x465401
movzx ecx, word [edi + eax]
test cx, cx
je 0x465401
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4653e1
jmp 0x465405
test edx, edx
jne 0x465408
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.004654f0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x465483
mov ecx, dword [ebp - 0x30]
push ecx
push ebx
call fcn.00464f20
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.00466ac0
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 0x4654d1
mov edi, esi
call fcn.00464a10
mov edx, dword [ebp - 0x30]
push 3
mov ecx, ebx
call fcn.004658f0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x20]
jmp 0x4654d1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4654c5
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.00491281
mov esp, ebp
pop ebp
ret 4