Function at 0x4222c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b60bb
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x4ff1a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x422579
push 0xffffffffffffffff
push esi
xor eax, eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.0040f1f0
mov dword [ebp - 4], esi
push 0x2f
lea esi, [ebp - 0x2c]
call fcn.004196c0
add esp, 4
push 0x5c
call fcn.004196c0
mov ebx, 3
add esp, 4
cmp dword [ebp - 0x1c], ebx
ja case.default.0x42235a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42234a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
ja case.default.0x42235a
jmp dword [eax*4 + 0x422598]
push 1
push 2
lea ecx, [ebp - 0x368]
call fcn.00413cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push ecx
push ecx
push str.._tmpPath:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x368]
push str.GetDriveTypeW_FAILED._GetLastError:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push str.CFileUtility::IsDirPath
lea ecx, [ebp - 0x48]
call fcn.0040ece0
mov byte [ebp - 4], 2
push str.FileUtility.cpp
lea ecx, [ebp - 0x64]
call fcn.0040ece0
mov byte [ebp - 4], bl
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x368]
call fcn.00413de0
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x268
lea edx, [ebp - 0x64]
push edx
push 0
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x80]
call fcn.0040f320
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0040f350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.0040f350
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x368]
call fcn.00412cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040f320
jmp 0x422579
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040f320
mov al, 1
jmp 0x42257b
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42246e
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2d0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or esi, 0xffffffff
cmp eax, esi
jne 0x42250d
mov eax, dword [edi + 0x10]
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x42249b
push str.invalid_string_position
call fcn.0048f3ef
mov ebx, dword [edi + 0x14]
cmp ebx, 8
jb 0x4224a7
mov eax, dword [edi]
jmp 0x4224a9
mov eax, edi
lea edx, [ecx + ecx]
cmp word [edx + eax], 0x5c
je 0x4224e0
cmp dword [edi + 0x10], ecx
ja 0x4224c2
push str.invalid_string_position
call fcn.0048f3ef
cmp ebx, 8
jb 0x4224c9
mov edi, dword [edi]
cmp word [edx + edi], 0x2f
je 0x4224e0
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x2c]
call fcn.0040f320
jmp 0x422579
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 8
jb 0x4224f5
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov al, 1
jmp 0x42257b
test byte [ebp - 0x2d0], 0x10
push eax
je 0x42254a
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 8
jb 0x422532
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
mov al, 1
jmp 0x42257b
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 8
jb 0x422565
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004911d1
mov esp, ebp
pop ebp
ret