Function at 0x413a56
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1ac
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
push 0x10000
mov esi, ecx
push 8
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x130], 0x5c3a41
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov dword [ebp - 0x134], eax
cmp eax, ecx
je 0x413ce8
push ebx
push edi
lea edi, [eax + 0x104]
mov dword [ebp - 0x124], edi
mov ebx, 0x400
add edi, ebx
mov dword [ebp - 0x100], edi
mov eax, 0x800
add edi, eax
mov dword [ebp - 0xfc], edi
add edi, eax
mov dword [ebp - 0x120], edi
add edi, 0x1000
mov dword [ebp - 0x138], edi
add edi, ebx
lea eax, [ebp + 0x68]
mov dword [ebp - 0x128], edi
push eax
push dword [esi + 0xc]
add edi, ebx
mov dword [ebp - 0x12c], edi
add edi, ebx
mov byte [ebp - 0xe0], cl
mov byte [ebp - 0xa0], cl
mov byte [ebp - 0x20], cl
mov dword [ebp + 0x64], 1
mov dword [ebp + 0x60], ecx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], ecx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x413b2a
lea eax, [ebp + 0x68]
push eax
call fcn.004012a0
pop ecx
call fcn.00406ca2
cmp dword [ebp + 0x7c], 1
jne 0x413cd1
mov ecx, dword [ebp - 0x120]
add esi, 0x128
call fcn.00413502
mov esi, dword [ebp - 0x138]
mov al, byte [esi]
mov byte [ebp - 0x130], al
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 0x1174]
mov dword [ebp + 0x60], eax
xor eax, eax
push eax
push eax
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x120]
mov byte [esi], 0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x413b94
push ebx
push dword [ebp - 0x120]
push esi
call fcn.0046fe9f
add esp, 0xc
mov eax, dword [ebp - 0x11c]
add eax, 0x1128
je 0x413bb5
cmp byte [eax], 0
je 0x413bb5
push eax
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x413bd5
mov eax, dword [ebp - 0x11c]
push dword [eax + 0x1170]
push str.K7_ID__08X
push dword [ebp - 0x124]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x128]
push ecx
mov byte [eax], 0
push eax
mov eax, dword [ebp - 0x11c]
mov byte [ecx], 0
push dword [eax + 0xc]
call fcn.0041266c
lea ebx, [edi + 0x400]
push ebx
push edi
push dword [ebp - 0x128]
mov byte [edi], 0
mov byte [ebx], 0
call fcn.004125e4
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xf0], eax
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xe8], ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe0]
push eax
push esi
call fcn.0041258c
lea eax, [ebp - 0xa0]
push eax
push esi
call fcn.00407b51
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00407b85
add esp, 0x18
test byte [ebp + 0x60], 2
je 0x413cbe
lea eax, [ebp - 0x118]
push eax
call fcn.004155d3
pop ecx
lea eax, [ebp - 0x118]
push eax
call fcn.00415852
mov esi, dword [ebp - 0x11c]
pop ecx
push dword [ebp - 0x134]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
push esi
call fcn.00411f08
pop ecx
mov ecx, dword [ebp + 0x70]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0046c1d2
add ebp, 0x74
leave
ret