Function at 0x413160
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.004248b0
mov al, byte [0x42b74c]
mov cl, byte [0x42b749]
or al, cl
mov ecx, dword [0x42b774]
push ebx
and ecx, 0x3d9ffff
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 1
mov byte [0x42b748], al
mov dword [0x42b784], ecx
mov ecx, 6
xor eax, eax
mov byte [0x42b74b], bl
push 0xd9bfffff
rep stosd dword es:[edi], eax
push 0x99f1ffff
call fcn.0040e340
movsx edx, byte [0x42b748]
push 0x1ee3ffff
push edx
mov dword [0x42b76c], eax
call fcn.0040e290
mov dword [0x42b768], eax
mov al, byte [0x42b762]
add esp, 0x10
dec al
mov byte [0x42b74e], al
mov al, byte [0x42bd44]
test al, al
je 0x413238
mov cx, word [0x42b760]
mov edi, dword [ebp + 8]
neg cx
mov word [0x42b762], cx
mov ecx, 6
mov esi, 0x42bd2c
mov dword [0x42b768], ebx
push 0x47dfffff
push 0xb2d3ffff
rep movsd dword es:[edi], dword [esi]
call fcn.0040e340
add esp, 8
mov dword [0x42b778], eax
lea esp, [ebp - 0x1264]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1487ffff
push 0x9b95ffff
call fcn.0040e4a0
mov edx, dword [0x42b768]
mov dword [0x42b784], eax
mov eax, dword [0x42b774]
push edx
push eax
mov byte [0x42b74c], bl
call fcn.0040e2c0
mov ecx, dword [0x42b76c]
mov byte [0x42b74d], al
push ecx
push 0x1287ffff
call fcn.0040e380
movsx edx, byte [0x42b748]
mov byte [0x42b74b], al
mov eax, dword [0x42b784]
add edx, eax
mov al, byte [0x42b40c]
sub al, 0x28
mov esi, 3
and eax, 0xff
add esp, 0x18
add eax, esi
mov word [0x42b754], 0xffff
and al, 0xfc
mov dword [0x42b768], edx
call fcn.004248b0
mov ecx, esp
lea eax, [ebp - 0xa58]
push 0x800
lea edx, [ebp - 0x1a0]
push eax
push edx
lea eax, [ebp - 0x1a8]
lea edx, [ebp - 0x1c]
push eax
push edx
lea eax, [ebp - 0x1258]
push 0x800
push eax
mov edx, 0x42b40c
call fcn.00422900
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
je 0x413335
mov al, byte [0x42b74e]
xor ecx, ecx
test al, al
setne cl
push 0xc445ffff
push 0x8679ffff
mov dword [0x42b770], 0xa520000
mov dword [0x42b77c], ecx
call fcn.0040e2f0
mov edx, dword [ebp - 0x1c]
mov byte [0x42b74e], al
mov eax, dword [ebp + 8]
add esp, 8
mov dword [eax], edx
push 0x7947ffff
push 0xf1d9ffff
call fcn.0040e4a0
mov cl, byte [0x42b75c]
mov dword [0x42b768], eax
mov al, byte [0x42b74c]
push 0x8ce1ffff
or al, cl
push 0x18f5ffff
mov byte [0x42b74c], al
call fcn.0040e4a0
mov word [0x42b75e], ax
call fcn.00414480
mov edx, dword [ebp + 8]
push 0x2ebffff
push 0xad97ffff
mov dword [edx + 0xc], eax
call fcn.0040e380
movsx ecx, word [0x42b75e]
mov dword [0x42b76c], eax
mov eax, dword [0x42b784]
push eax
push ecx
call fcn.0040e290
mov edx, dword [0x42b778]
mov word [0x42b752], ax
mov eax, dword [0x42b784]
push edx
push eax
call fcn.0040e4a0
movsx ecx, word [0x42b752]
push ecx
push 0xa2adffff
mov dword [0x42b77c], eax
call fcn.0040e380
movsx edx, word [0x42b754]
mov dword [0x42b788], eax
add esp, 0x30
movsx eax, byte [0x42b74d]
imul edx, eax
cmp word [0x42b75e], 0
mov dword [0x42b780], edx
je 0x41340a
cmp word [0x42b75a], 0
mov dword [0x42b778], ebx
jne 0x413414
mov dword [0x42b778], 0
mov al, byte [0x42b3fc]
sub al, 0x28
and eax, 0xff
add eax, esi
and al, 0xfc
call fcn.004248b0
mov ecx, esp
mov edx, 0x42b3fc
call fcn.00422900
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor ecx, ecx
mov edi, eax
cmp word [0x42b75e], cx
mov dword [ebp - 8], edi
setne cl
cmp edi, 0x20
mov dword [0x42b770], ecx
jb 0x413f17
mov al, byte [0x42b3e8]
mov edx, dword [0x42b780]
sub al, 0x28
or edx, 0x464dffff
and eax, 0xff
mov dword [0x42b77c], edx
add eax, esi
mov word [0x42b762], bx
and al, 0xfc
call fcn.004248b0
mov ecx, esp
mov edx, 0x42b3e8
call fcn.00422900
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call edi
movsx ecx, byte [0x42b74a]
mov dword [ebp - 4], eax
mov ax, word [0x42b75e]
inc ax
push ecx
push 0x1e37ffff
mov word [0x42b760], ax
call fcn.0040e4a0
mov word [0x42b75c], ax
mov al, byte [0x42b3d0]
sub al, 0x28
add esp, 8
and eax, 0xff
mov byte [0x42b750], 0xff
add eax, esi
mov word [0x42b752], 0xfffe
and al, 0xfc
call fcn.004248b0
mov ecx, esp
mov edx, 0x42b3d0
call fcn.00422900
mov edx, dword [ebp - 8]
push eax
push edx
call edi
movsx eax, word [0x42b762]
add eax, 0x764fffff
mov dword [0x42b784], 0xaa660000
mov dword [0x42b774], eax
mov al, byte [0x42b3bc]
sub al, 0x28
and eax, 0xff
add eax, esi
and al, 0xfc
call fcn.004248b0
mov ecx, esp
mov edx, 0x42b3bc
call fcn.00422900
mov ecx, dword [ebp - 8]
push eax
push ecx
call edi
push 0xd279ffff
push 0xe95dffff
mov dword [ebp - 0x10], eax
call fcn.0040e450
push 0x724fffff
push 0xeff5ffff
mov byte [0x42b74c], al
call fcn.0040e4a0
mov word [0x42b75e], ax
mov al, byte [0x42b3a8]
sub al, 0x28
add esp, 0x10
and eax, 0xff
add eax, esi
and al, 0xfc
call fcn.004248b0
mov ecx, esp
mov edx, 0x42b3a8
call fcn.00422900
mov edx, dword [ebp - 8]
push eax
push edx
call edi
movsx ecx, word [0x42b75a]
mov eax, dword [0x42b788]
push eax
push ecx
call fcn.0040e3c0
mov byte [0x42b74d], al
mov al, byte [0x42b74c]
add esp, 8
test al, al
je 0x4135d2
mov eax, dword [0x42b784]
mov word [0x42b762], bx
test eax, eax
jne 0x4135db
mov word [0x42b762], 0
mov eax, dword [0x42b778]
test eax, eax
je 0x4135f3
mov al, byte [0x42b74e]
mov byte [0x42b74f], bl
test al, al
jne 0x4135fa
mov byte [0x42b74f], 0
push 0xc085ffff
push 0x472fffff
call fcn.0040e2f0
movsx edx, word [0x42b756]
push 0xe757ffff
push edx
mov dword [0x42b774], eax
call fcn.0040e3c0
movsx ecx, word [0x42b758]
mov byte [0x42b74d], al
mov eax, dword [0x42b774]
push eax
push ecx
call fcn.0040e2c0
push 0xc2bbffff
push 0x1c47ffff
mov dword [0x42b784], eax
call fcn.0040e2c0
mov edi, dword [ebp - 4]
add esp, 0x20
test edi, edi
mov byte [0x42b74d], al
je 0x413ef1
lea edx, [ebp - 0x1b0]
lea eax, [ebp - 0x1a4]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call edi
test eax, eax
je 0x413ef1
movsx edx, word [0x42b75a]
mov eax, dword [0x42b788]
mov edi, 2
or edx, eax
lea ecx, [ebp - 0x84]
movsx eax, byte [0x42b74b]
push eax
push 0x754bffff
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 6
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x40], ecx
mov dword [0x42b77c], edx
call fcn.0040e4a0
push 0x213ffff
push 0xc4ddffff
mov dword [0x42b780], eax
call fcn.0040e380
movsx ecx, byte [0x42b748]
push ecx
push 0xb8bffff
mov byte [0x42b74d], al
call fcn.0040e450
mov byte [0x42b749], al
lea edx, [ebp - 0x124]
movsx eax, byte [0x42b74b]
push 0x8c05ffff
push eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 6
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x5c], 0xa
mov dword [ebp - 0x58], edx
mov word [0x42b752], 0xffff
call fcn.0040e450
movsx ecx, word [0x42b756]
mov edx, dword [0x42b770]
push ecx
push edx
mov byte [0x42b74f], al
call fcn.0040e2f0
mov ecx, dword [0x42b770]
mov edx, dword [0x42b77c]
mov word [0x42b75c], ax
mov eax, 6
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xd4]
push ecx
push edx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0x54], 0xa
mov dword [ebp - 0x50], eax
call fcn.0040e340
mov dword [0x42b788], eax
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xf4], 6
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xe8], ebx
movsx ecx, word [0x42b758]
lea eax, [ebp - 0xfc]
push ecx
mov dword [ebp - 0x48], eax
mov ax, word [0x42b75a]
movsx edx, ax
push edx
mov dword [ebp - 0xe4], 4
mov dword [ebp - 0xe0], 0x14
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0x4c], 0xa
mov byte [0x42b74b], al
call fcn.0040e2c0
mov dword [0x42b768], eax
push 0xb6a5ffff
movsx eax, word [0x42b75e]
push eax
mov byte [0x42b74b], 0xff
call fcn.0040e2f0
lea edx, [ebp - 0x14c]
mov byte [0x42b74b], al
mov dword [ebp - 0x28], edx
mov edx, dword [0x42b784]
add esp, 0x40
mov ecx, 6
mov eax, 0xa
mov dword [ebp - 0x14c], ebx
test edx, edx
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], 4
mov dword [ebp - 0x130], 0x14
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x2c], eax
je 0x413909
mov dl, byte [0x42b74f]
mov byte [0x42b74a], bl
test dl, dl
jne 0x413910
mov byte [0x42b74a], 0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x19c]
push 0x8e03ffff
push 0x57adffff
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x60], eax
call fcn.0040e3c0
mov edx, dword [0x42b774]
lea ecx, [ebp - 0xac]
push 0x713fffff
push edx
mov byte [0x42b74c], al
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], 6
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], 4
mov dword [ebp - 0x90], 0x14
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x34], 0xa
mov dword [ebp - 0x30], ecx
call fcn.0040e450
mov word [0x42b760], ax
mov eax, dword [0x42b770]
push eax
push 0xf0adffff
mov dword [0x42b788], 0xc205ffff
call fcn.0040e340
mov ecx, dword [0x42b768]
mov dword [0x42b770], eax
push ecx
push 0x9d37ffff
call fcn.0040e380
movsx edx, word [0x42b756]
mov dword [0x42b77c], eax
push edx
movsx eax, byte [0x42b74c]
push eax
call fcn.0040e2f0
mov dl, byte [0x42b760]
add esp, 0x28
lea ecx, [ebp - 0x174]
inc dl
mov dword [ebp - 0x38], ecx
mov byte [0x42b74c], dl
lea ecx, [ebp - 0x44]
mov word [0x42b754], ax
lea edx, [ebp - 0x258]
lea eax, [ebp - 0x258]
push ecx
push edx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x16c], 6
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x3c], 0xa
mov dword [0x42b788], 0xe9f3ffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
call dword [0x42bc9c]
push 0x40e9ffff
push 0xa4d5ffff
call fcn.0040e380
add esp, 8
mov dword [0x42b778], eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
push 0xa1
call dword [ebp - 0x10]
push 0x3823ffff
push 0x6ff1ffff
call fcn.0040e340
mov word [0x42b75a], ax
mov cx, word [0x42b77c]
movsx ax, byte [0x42b74d]
or ax, word [0x42b752]
mov edi, dword [ebp - 0x24c]
mov byte [0x42b749], 0xff
mov word [0x42b760], 0xffff
mov word [0x42b756], ax
mov eax, dword [0x42b788]
push eax
push eax
mov word [0x42b75e], cx
call fcn.0040e4a0
movsx edx, word [0x42b754]
push edx
push 0xca0bffff
mov dword [0x42b788], eax
call fcn.0040e2c0
movsx ecx, word [0x42b760]
mov dword [0x42b768], eax
add esp, 0x18
movsx eax, word [0x42b754]
imul eax, ecx
mov dword [0x42b780], eax
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x258]
push edx
push eax
call dword [0x42bc9c]
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x240]
push ecx
push edx
call dword [0x42bc9c]
movsx eax, byte [0x42b74e]
movsx ecx, byte [0x42b748]
push eax
push ecx
call fcn.0040e450
movsx dx, byte [0x42b750]
mov dword [0x42b77c], eax
add esp, 8
movsx ax, byte [0x42b74a]
imul edx, eax
mov word [0x42b758], dx
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x228]
push ecx
push edx
mov dword [ebp - 0x14], 7
call dword [0x42bc9c]
mov ax, word [0x42b758]
mov byte [0x42b74b], 0xff
movsx ecx, ax
and ecx, 0x1dbfffff
test ax, ax
mov dword [0x42b780], ecx
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x210]
push eax
setne dl
push ecx
mov byte [0x42b748], dl
call dword [0x42bc9c]
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x1f8]
push edx
push eax
call dword [0x42bc9c]
mov eax, dword [0x42b770]
xor ecx, ecx
test eax, eax
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x1e0]
setne cl
push edx
push eax
mov word [0x42b75e], cx
call dword [0x42bc9c]
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x1c8]
push ecx
push edx
call dword [0x42bc9c]
mov cl, byte [0x42b760]
or al, 0xff
sub al, cl
push 0x216dffff
movsx ecx, byte [0x42b74c]
push ecx
mov byte [0x42b749], al
mov byte [0x42b750], 0xff
xor esi, esi
call fcn.0040e450
add esp, 8
mov dword [0x42b780], eax
test edi, edi
mov dword [ebp - 0xc], esi
jbe 0x413ef1
mov dword [ebp - 4], edi
mov edx, dword [0x42b784]
mov al, byte [0x42b774]
imul edx, dword [0x42b778]
dec al
mov dword [0x42b77c], edx
lea ecx, [ebp - 0x24]
mov byte [0x42b74e], al
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x18]
push edx
push eax
push 0xa1
call dword [ebp - 0x10]
cmp dword [ebp - 0x230], 6
jb 0x413ee4
movsx ecx, byte [0x42b750]
movsx edx, word [0x42b75e]
push ecx
push edx
call fcn.0040e4a0
mov word [0x42b75e], ax
movsx eax, byte [0x42b74b]
push eax
push 0x5cd1ffff
call fcn.0040e2f0
add esp, 0x10
mov byte [0x42b74d], al
test esi, esi
jne 0x413e04
mov ecx, dword [0x42b780]
push ecx
push 0x5945ffff
call fcn.0040e450
movsx edx, byte [0x42b750]
push 0xc4e3ffff
push edx
mov byte [0x42b74d], al
call fcn.0040e450
movsx ecx, word [0x42b75e]
mov word [0x42b758], ax
movsx eax, byte [0x42b749]
push eax
push ecx
call fcn.0040e380
mov byte [0x42b74f], al
mov eax, dword [ebp - 0x234]
xor edx, edx
xor ecx, ecx
mov dl, byte [eax]
mov cl, byte [eax + 1]
mov edi, dword [ebp + 8]
push 0x6ba7ffff
shl edx, 8
add edx, ecx
xor ecx, ecx
mov cl, byte [eax + 2]
push 0xca7fffff
shl edx, 8
add edx, ecx
mov dword [edi + 4], edx
call fcn.0040e4a0
mov byte [0x42b74d], al
mov eax, dword [ebp - 0x234]
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 3]
mov cl, byte [eax + 4]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov cl, byte [eax + 5]
push 0x62dfffff
shl edx, 8
add edx, ecx
push 0xcd7fffff
mov dword [edi + 8], edx
call fcn.0040e2c0
movsx edx, word [0x42b752]
push edx
push 0x86ebffff
mov word [0x42b75e], ax
call fcn.0040e2f0
push 0xbd85ffff
push 0x6497ffff
mov dword [0x42b778], eax
call fcn.0040e2c0
add esp, 0x38
mov word [0x42b75c], ax
mov esi, ebx
jmp 0x413e07
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x24c], 6
jne 0x413ee4
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413ee4
push 0x12d3ffff
push 0xf607ffff
call fcn.0040e2c0
mov ecx, dword [0x42b778]
mov dword [0x42b77c], eax
movsx eax, word [0x42b762]
and eax, ecx
xor ecx, ecx
mov dword [0x42b784], eax
mov eax, dword [ebp - 0x234]
mov byte [0x42b74e], 0xff
mov word [0x42b75a], 0
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + 1]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [eax + 2]
shl ecx, 8
add ecx, edx
mov dword [edi + 0x10], ecx
mov edx, dword [0x42b768]
movsx ecx, word [0x42b754]
add ecx, 0x6820001
mov dword [0x42b76c], 0x33380001
mov dword [0x42b780], ecx
xor ecx, ecx
neg edx
mov byte [0x42b74d], bl
mov word [0x42b752], dx
mov cl, byte [eax + 3]
xor edx, edx
mov dl, byte [eax + 4]
shl ecx, 8
add ecx, edx
xor edx, edx
mov dl, byte [eax + 5]
shl ecx, 8
add ecx, edx
mov dword [edi + 0x14], ecx
movsx eax, word [0x42b75c]
push eax
push 0xde71ffff
call fcn.0040e380
add esp, 0x10
mov word [0x42b75e], ax
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jne 0x413c9d
mov dl, byte [0x42b74f]
xor ecx, ecx
test dl, dl
mov edx, dword [ebp - 8]
setne cl
push edx
mov dword [0x42b780], ecx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov word [0x42b752], 0xffff
movsx eax, word [0x42b75e]
movsx ecx, byte [0x42b74c]
push eax
push ecx
mov byte [0x42bd44], bl
call fcn.0040e380
push 0xae31ffff
push 0xbd59ffff
mov dword [0x42b770], eax
call fcn.0040e4a0
movsx edx, byte [0x42b750]
mov esi, dword [ebp + 8]
mov ecx, 6
mov edi, 0x42bd2c
mov word [0x42b752], ax
push 0xf8bfffff
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040e400
add esp, 0x18
mov byte [0x42b74c], al
movsx eax, byte [0x42b750]
lea esp, [ebp - 0x1264]
mov ecx, 0xf605ffff
sub ecx, eax
pop edi
pop esi
mov dword [0x42b774], ecx
pop ebx
mov esp, ebp
pop ebp
ret