Function at 0x422904
Capabilities:
Get disk information
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x1c0
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.0049ef70
add esp, 0xc
mov dword [ebp - 0x1d4], 0x5c3a41
push 0x14000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1f0], eax
test eax, eax
je 0x422db3
mov ecx, 0x400
lea esi, [eax + 0x104]
mov ebx, esi
lea eax, [ebp - 0x38]
add esi, ecx
mov dword [ebp - 0x1b0], esi
add esi, 0x1000
mov dword [ebp - 0x1ac], esi
add esi, 0x2000
mov dword [ebp - 0x1cc], esi
add esi, ecx
mov dword [ebp - 0x1d0], esi
add esi, ecx
mov dword [ebp - 0x1dc], esi
add esi, ecx
mov dword [ebp - 0x1e0], esi
add esi, ecx
mov dword [ebp - 0x1e8], esi
add esi, ecx
mov dword [ebp - 0x28], esi
add esi, 0x800
mov dword [ebp - 0x24], esi
add esi, ecx
mov dword [ebp - 0x20], esi
add esi, ecx
push eax
push dword [edi + 0xc]
mov dword [ebp - 0x1d8], esi
add esi, ecx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x4229e2
lea ecx, [ebp - 0x38]
call fcn.0048dd30
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x14]
call fcn.0048de60
test eax, eax
je 0x422a0a
cmp dword [ebp - 0x14], 0
je 0x422a0a
mov ecx, dword [ebp - 0x38]
mov edx, esi
mov dword [ebp - 0x10], edx
add esi, 0x4b0
call fcn.0048df20
call fcn.0040a6a4
mov eax, dword [edi + 0x197c]
lea ecx, [edi + 0x92c]
xor edx, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1cc]
push edx
push edx
push 0x400
push eax
push 0xffffffffffffffff
push ecx
push edx
push edx
mov byte [eax], dl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x422a59
push 0x400
lea eax, [edi + 0x92c]
push eax
push dword [ebp - 0x1cc]
call fcn.004cb853
add esp, 0xc
cmp dword [edi + 8], 8
mov eax, dword [ebp - 0x1cc]
mov al, byte [eax]
mov byte [ebp - 0x1d4], al
jne 0x422ab8
mov eax, dword [edi + 0x18]
sub eax, 0x494e5441
je 0x422aa3
dec eax
sub eax, 1
je 0x422a9c
sub eax, 0xc
je 0x422a95
sub eax, 3
je 0x422a8e
push str.Scan_failure_detected.
jmp 0x422aa8
push str.Scan_crash__R__detected.
jmp 0x422aa8
push str.Scan_crash__O__detected.
jmp 0x422aa8
push str.Scan_crash__C__detected.
jmp 0x422aa8
push str.Scan_crash__A__detected.
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
xor edx, edx
pop ecx
mov byte [edi + 0x14], dl
jmp 0x422adf
cmp byte [edi + 0x10], 0
lea eax, [edi + 0x1938]
push eax
jne 0x422acd
push dword [0x51eb60]
jmp 0x422ad3
push dword [0x51ebe8]
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor edx, edx
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [ebp - 0x1dc]
push edx
push ecx
mov byte [eax], dl
mov byte [ecx], dl
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.0041f348
mov eax, dword [ebp - 0x1e0]
xor edx, edx
mov ecx, dword [ebp - 0x1e8]
push ecx
mov byte [eax], dl
mov byte [ecx], dl
mov edx, eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0041f2c0
mov ecx, dword [ebp - 0x1d8]
lea eax, [edi + 0x128]
add esp, 0xc
xor edx, edx
mov byte [ecx], dl
push edx
push edx
push 0x400
push ecx
push 0xffffffffffffffff
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x422b5f
push 0x400
lea eax, [edi + 0x128]
push eax
push dword [ebp - 0x1d8]
call fcn.004cb853
add esp, 0xc
push 0xb
pop eax
xor edx, edx
mov dword [ebp - 0x1c4], edi
lea ecx, [edi + 0x92c]
mov dword [ebp - 0x1b4], ebx
cmp word [ecx], dx
push 1
pop edx
cmovne eax, edx
mov dword [ebp - 0x1c0], ecx
cmp byte [ebp - 0x1d4], 0
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1bc], eax
lea eax, [edi + 0x1938]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x198], eax
je 0x422bf3
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x194], eax
xor ebx, ebx
jmp 0x422bfb
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov eax, dword [edi + 0x928]
mov edx, dword [edi + 0x1934]
mov ecx, dword [edi + 0x1930]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x188]
push eax
call fcn.0040c293
mov edx, dword [edi + 0x1934]
lea eax, [ebp - 0x148]
pop ecx
mov ecx, dword [edi + 0x1930]
push eax
call fcn.0040c2e4
mov edx, dword [edi + 0x1934]
lea eax, [ebp - 0xc8]
pop ecx
mov ecx, dword [edi + 0x1930]
push eax
call fcn.0040c351
xor eax, eax
inc eax
pop ecx
cmp dword [ebp - 0x1c8], eax
jne 0x422d1b
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
lea eax, [edi + 0x92c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422cd4
lea eax, [ebp - 0x190]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x1e4]
xor edx, edx
push eax
push edx
lea eax, [ebp - 0x1ec]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x422ccd
lea ecx, [ebp - 0x1ec]
call fcn.00420fc4
lea ecx, [ebp - 0x1e4]
mov dword [ebp - 0x48], eax
call fcn.00420fc4
mov dword [ebp - 0x44], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x188]
xor ebx, ebx
mov byte [eax], bl
mov eax, dword [ebp - 0x24]
mov byte [eax], bl
mov eax, dword [ebp - 0x20]
mov byte [eax], bl
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.0041f10d
pop ecx
pop ecx
call fcn.0040cd9c
test eax, eax
je 0x422d1b
mov ecx, dword [ebp - 0x1cc]
mov edx, esi
mov dword [ebp - 0xc], esi
call fcn.0040cdee
neg eax
sbb eax, eax
and dword [ebp - 0xc], eax
cmp byte [edi + 0x14], 0
je 0x422d34
lea ecx, [ebp - 0x1c8]
call fcn.0041e97a
mov byte [ebp - 0x1a7], al
jmp 0x422d3b
mov byte [ebp - 0x1a7], 0x78
cmp byte [0x51e6c8], 0
je 0x422d4f
lea ecx, [ebp - 0x1c8]
call fcn.00423776
cmp byte [0x51e8c9], 0
je 0x422d63
lea ecx, [ebp - 0x1c8]
call fcn.00423fec
mov ecx, dword [ebp - 0x1b8]
test ecx, ecx
je 0x422d9f
cmp byte [ecx], 0
je 0x422d9f
cmp dword [ebp - 0x194], 3
je 0x422d84
cmp dword [ebp - 0x194], 2
jne 0x422d8d
call fcn.0041fb11
test eax, eax
jne 0x422d9f
push dword [edi + 0xc]
lea edx, [ebp - 0x1c8]
push 2
pop ecx
call fcn.0041f9e3
pop ecx
push dword [ebp - 0x1f0]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, edi
call fcn.0041e227
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0049d307
leave
ret