Function at 0x40dfe0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.0041a770
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, 6
xor eax, eax
mov edi, edx
mov word [0x422b12], 0xffff
rep stosd dword es:[edi], eax
mov eax, dword [0x422b1c]
add eax, 0x3a25ffff
mov dword [0x422b2c], eax
mov al, byte [0x422fdc]
test al, al
je 0x40e060
movsx ecx, word [0x422b02]
mov eax, 0x52bffff
mov esi, 0x422fc4
sub eax, ecx
mov ecx, 6
mov edi, edx
mov dword [0x422b1c], eax
rep movsd dword es:[edi], dword [esi]
mov cl, byte [0x422b2c]
mov byte [0x422afb], 0xff
mov byte [0x422afd], cl
lea esp, [ebp - 0x1264]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x422b28]
mov word [0x422b10], 0xfffe
test eax, eax
mov ebx, 1
je 0x40e088
cmp word [0x422b04], 0
mov word [0x422b02], bx
jne 0x40e091
mov word [0x422b02], 0
mov al, byte [0x4227d0]
mov esi, 3
add al, 0x62
and eax, 0xff
add eax, esi
and al, 0xfc
call fcn.0041a770
mov ecx, esp
lea edx, [ebp - 0xa58]
push 0x800
lea eax, [ebp - 0x1a0]
push edx
push eax
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x1c]
push edx
push eax
lea edx, [ebp - 0x1258]
push 0x800
push edx
mov edx, 0x4227d0
call fcn.004196b0
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
je 0x40e100
mov al, byte [0x422b12]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
dec al
mov byte [0x422b00], al
mov dword [edx], ecx
mov ecx, dword [0x422b38]
mov edx, dword [0x422b1c]
xor eax, eax
test ecx, ecx
mov ecx, dword [0x422b18]
setne al
add ecx, edx
mov word [0x422b10], ax
mov word [0x422b08], cx
call fcn.0040ed00
mov ecx, dword [ebp + 8]
or dl, 0xff
mov dword [ecx + 0xc], eax
mov al, byte [0x422b30]
mov ecx, dword [0x422b24]
sub dl, al
xor eax, eax
mov byte [0x422af8], dl
test ecx, ecx
setne al
mov cl, byte [0x422afa]
mov dword [0x422b2c], eax
mov al, byte [0x4227c0]
dec cl
add al, 0x62
mov word [0x422b0c], bx
and eax, 0xff
mov byte [0x422b00], cl
add eax, esi
and al, 0xfc
call fcn.0041a770
mov ecx, esp
mov edx, 0x4227c0
call fcn.004196b0
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
mov al, byte [0x422afc]
movsx dx, al
imul dx, word [0x422b0c]
cmp edi, 0x20
mov dword [ebp - 8], edi
mov byte [0x422afa], al
mov word [0x422b0c], dx
jb 0x40e913
mov al, byte [0x4227ac]
mov byte [0x422af9], 0xfe
add al, 0x62
and eax, 0xff
add eax, esi
and al, 0xfc
call fcn.0041a770
mov ecx, esp
mov edx, 0x4227ac
call fcn.004196b0
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call edi
mov dword [ebp - 4], eax
mov al, byte [0x422794]
add al, 0x62
and eax, 0xff
add eax, esi
and al, 0xfc
call fcn.0041a770
mov ecx, esp
mov edx, 0x422794
call fcn.004196b0
push eax
mov eax, dword [ebp - 8]
push eax
call edi
movsx ax, byte [0x422aff]
mov ecx, eax
mov word [0x422b0e], 0xffff
imul ecx, eax
mov al, byte [0x422780]
mov word [0x422b12], cx
add al, 0x62
and eax, 0xff
add eax, esi
and al, 0xfc
call fcn.0041a770
mov ecx, esp
mov edx, 0x422780
call fcn.004196b0
mov edx, dword [ebp - 8]
push eax
push edx
call edi
mov dword [ebp - 0x10], eax
mov ecx, 0x47a3ffff
movsx eax, byte [0x422afd]
sub ecx, eax
mov al, byte [0x42276c]
add al, 0x62
mov dword [0x422b1c], ecx
and eax, 0xff
add eax, esi
and al, 0xfc
call fcn.0041a770
mov ecx, esp
mov edx, 0x42276c
call fcn.004196b0
mov edx, dword [ebp - 8]
push eax
push edx
call edi
mov eax, dword [0x422b2c]
mov dword [0x422b24], 0xf35bffff
test eax, eax
je 0x40e2c0
mov eax, dword [0x422b1c]
mov byte [0x422b00], bl
test eax, eax
jne 0x40e2c7
mov byte [0x422b00], 0
movsx eax, byte [0x422afc]
movsx ecx, word [0x422b02]
imul eax, ecx
mov edi, dword [ebp - 4]
mov dword [0x422b20], eax
test edi, edi
je 0x40e8d8
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 0x40e8d8
lea edx, [ebp - 0x124]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x58], edx
mov dl, byte [0x422b38]
neg dl
cmp word [0x422b0c], 0
mov dword [ebp - 0x40], ecx
mov byte [0x422afd], dl
mov edi, 6
mov eax, 2
mov ecx, 0xa
lea edx, [ebp - 0xd4]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x5c], ecx
mov word [0x422b12], bx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
je 0x40e3ff
mov edx, dword [0x422b24]
test edx, edx
je 0x40e3ff
mov dx, bx
jmp 0x40e402
xor dx, dx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0xf4], edi
movsx cx, byte [0x422afe]
neg ecx
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x194], edi
mov dword [ebp - 0xa4], edi
mov word [0x422b10], cx
lea edi, [ebp - 0xac]
mov byte [0x422aff], cl
mov cl, byte [0x422afc]
mov dword [ebp - 0x30], edi
movsx di, cl
movsx ecx, cl
mov word [0x422b04], dx
mov dword [ebp - 0xec], eax
neg edi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
inc dl
lea eax, [ebp - 0x174]
or ecx, 0x15b9ffff
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], 4
mov dword [ebp - 0xe0], 0x14
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x140], ebx
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], 0xa
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x64], 0xa
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], 4
mov dword [ebp - 0x90], 0x14
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x34], 0xa
mov word [0x422b0a], di
mov dword [0x422b2c], 0x7fffffff
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x16c], 6
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x3c], 0xa
mov dword [ebp - 0x38], eax
mov byte [0x422b00], dl
mov dword [0x422b28], ecx
mov byte [0x422afa], bl
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x258]
lea edx, [ebp - 0x258]
push eax
push ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
call sub.snmpapi.dll_SnmpUtilOidCpy
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0xa1
call dword [ebp - 0x10]
mov esi, dword [0x422b28]
or edi, 0xffffffff
mov edx, edi
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x258]
sub edx, esi
mov esi, dword [ebp - 0x24c]
push eax
push ecx
mov word [0x422b04], dx
call sub.snmpapi.dll_SnmpUtilOidCpy
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x240]
push edx
push eax
call sub.snmpapi.dll_SnmpUtilOidCpy
mov cl, byte [0x422b1c]
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x228]
inc cl
push edx
push eax
mov byte [0x422afb], cl
mov word [0x422b0c], di
mov word [0x422b08], di
mov dword [ebp - 0x14], 7
call sub.snmpapi.dll_SnmpUtilOidCpy
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x210]
push ecx
push edx
call sub.snmpapi.dll_SnmpUtilOidCpy
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x1f8]
push eax
push ecx
call sub.snmpapi.dll_SnmpUtilOidCpy
movsx edx, byte [0x422afb]
movsx eax, word [0x422b02]
or edx, eax
lea ecx, [ebp - 0x34]
mov dword [0x422b20], edx
lea edx, [ebp - 0x1e0]
push ecx
push edx
call sub.snmpapi.dll_SnmpUtilOidCpy
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c8]
push eax
push ecx
call sub.snmpapi.dll_SnmpUtilOidCpy
xor edi, edi
test esi, esi
mov dword [ebp - 0xc], edi
mov word [0x422b12], di
jbe 0x40e8d8
mov eax, dword [0x422b28]
mov dword [ebp - 4], esi
movsx edx, word [0x422b0a]
sub eax, edx
lea ecx, [ebp - 0x20]
mov dword [0x422b30], eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
push 0xa1
call dword [ebp - 0x10]
cmp dword [ebp - 0x230], 6
jb 0x40e8c6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x234]
test eax, eax
mov word [0x422b04], 0xfffe
jne 0x40e803
movsx eax, byte [0x422afa]
mov edx, 0x6397ffff
mov dword [0x422b18], 0x1885fffe
sub edx, eax
mov eax, dword [0x422b38]
mov dword [0x422b34], edx
add eax, 0x8a4dffff
xor edx, edx
mov dword [0x422b2c], eax
mov dl, byte [ecx]
xor eax, eax
mov al, byte [ecx + 1]
mov esi, dword [ebp + 8]
shl edx, 8
add edx, eax
xor eax, eax
mov al, byte [ecx + 2]
shl edx, 8
add edx, eax
mov dword [esi + 4], edx
mov dl, byte [0x422af8]
movsx eax, word [0x422b10]
mov byte [0x422afa], dl
mov edx, dword [0x422b2c]
sub eax, edx
xor edx, edx
mov dword [0x422b34], eax
mov dl, byte [ecx + 3]
xor eax, eax
mov al, byte [ecx + 4]
shl edx, 8
add edx, eax
xor eax, eax
mov al, byte [ecx + 5]
shl edx, 8
add edx, eax
mov dword [esi + 8], edx
mov al, byte [0x422af9]
test al, al
mov al, byte [0x422afc]
je 0x40e7e6
test al, al
mov word [0x422b02], bx
jne 0x40e7ef
mov word [0x422b02], 0
movsx edx, al
imul edx, edx, 0x7b53ffff
mov dword [0x422b20], edx
mov dword [ebp - 0xc], ebx
jmp 0x40e806
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x24c], 6
jne 0x40e8c6
test edi, edi
jne 0x40e8c6
mov edx, dword [0x422b28]
mov word [0x422b0a], 0xffff
mov al, dl
mov edi, ebx
imul byte [0x422afb]
mov byte [0x422afc], al
inc edx
xor eax, eax
mov word [0x422b0c], dx
mov al, byte [ecx]
xor edx, edx
mov dl, byte [ecx + 1]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 2]
shl eax, 8
add eax, edx
xor edx, edx
mov dword [esi + 0x10], eax
xor eax, eax
mov byte [0x422afa], 0xff
mov al, byte [ecx + 3]
mov dl, byte [ecx + 4]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 5]
shl eax, 8
add eax, edx
mov dword [esi + 0x14], eax
mov cl, byte [0x422aff]
xor eax, eax
test cl, cl
movsx ecx, byte [0x422af8]
setne al
mov dword [0x422b20], eax
mov eax, ecx
neg eax
shl eax, 5
sub eax, ecx
lea edx, [eax + eax*4]
mov eax, dword [0x422b28]
shl edx, 3
sub edx, ecx
shl edx, 0x14
sub edx, ecx
mov ecx, eax
neg ecx
mov dword [0x422b2c], edx
mov word [0x422b0c], cx
jmp 0x40e8cb
mov eax, dword [0x422b28]
mov ecx, dword [ebp - 4]
dec ecx
mov dword [ebp - 4], ecx
jne 0x40e6fd
mov dl, byte [0x422afc]
mov eax, dword [ebp - 8]
test dl, dl
setne dl
push eax
mov dword [0x422b1c], 0xb2180000
mov byte [0x422af8], dl
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ax, word [0x422b0e]
imul ax, word [0x422b10]
mov word [0x422b08], ax
jmp 0x40e919
mov ax, word [0x422b08]
movsx ecx, byte [0x422aff]
or ecx, 0xa18bffff
cmp word [0x422b0a], 0
mov byte [0x422fdc], bl
mov dword [0x422b28], ecx
je 0x40e948
test ax, ax
mov word [0x422b12], bx
jne 0x40e951
mov word [0x422b12], 0
mov esi, dword [ebp + 8]
mov ecx, 6
mov edi, 0x422fc4
lea esp, [ebp - 0x1264]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov byte [0x422afb], 0xff
pop ebx
mov esp, ebp
pop ebp
ret