Function at 0x42a230
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10dc
call fcn.004ad380
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x10d8], ebx
push edi
test ebx, ebx
je 0x42a4a0
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x10dc], edi
test edi, edi
je 0x42a4a0
push esi
push 0x800
lea eax, [ebp - 0x10d4]
push 0
push eax
call fcn.004fecc0
add esp, 0xc
lea eax, [ebp - 0x10d4]
push 0x400
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov esi, eax
test esi, esi
je 0x42a33c
push 0x800
lea eax, [ebp - 0x8d4]
push 0
push eax
call fcn.004fecc0
lea eax, [ebp - 0x10d4]
push 0x7e
push eax
call fcn.00500471
add esp, 0x14
test eax, eax
je 0x42a2fd
push 0x400
lea eax, [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x10d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x42a2fd
mov ecx, 1
jmp 0x42a2ff
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x8d4]
lea eax, [ebp - 0x10d4]
mov ecx, ebx
cmovne eax, edx
mov edx, 0x400
push eax
call fcn.0040c360
push dword [ebp - 0x10dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x10d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x42a3fa
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42a3f8
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x42a3f8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
movzx edx, ax
nop word [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42a3e3
lea eax, [ebp - 0xd4]
push eax
call ebx
mov edi, eax
lea eax, [ebp - 0xd4]
push edi
push eax
lea eax, [ebp - 0x10d4]
push eax
call fcn.00518574
add esp, 0xc
test eax, eax
je 0x42a419
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x42a390
xor esi, esi
push dword [ebp - 0x10dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x10d8]
lea eax, [ebp - 0xc]
mov esi, 0x400
mov ecx, ebx
push eax
mov edx, esi
call fcn.0040c360
mov ecx, esi
mov eax, ebx
cmp word [eax], 0
je 0x42a443
add eax, 2
sub ecx, 1
jne 0x42a435
mov eax, esi
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
test ecx, ecx
je 0x42a496
lea ecx, [ebx + edx*2]
sub esi, edx
je 0x42a489
lea eax, [edi + edi]
mov edx, SysReAllocString
sub eax, ecx
lea edi, [ebp - 0x10d4]
add edi, eax
nop dword [eax]
test edx, edx
je 0x42a489
movzx eax, word [edi + ecx]
test ax, ax
je 0x42a489
mov word [ecx], ax
dec edx
add ecx, 2
sub esi, 1
jne 0x42a470
test esi, esi
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov esi, 1
jmp 0x42a3fa
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004ac694
mov esp, ebp
pop ebp
ret