Function at 0x41e330
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d187e
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2bc], ecx
mov eax, dword [ebp - 0x2bc]
add eax, 0x290
push eax
lea ecx, [ebp - 0x10]
call fcn.00401610
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00404b70
cmp eax, 2
jge 0x41e3b2
mov dword [ebp - 0x258], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x258]
jmp 0x41ea0b
push 1
mov ecx, dword [ebp + 8]
call fcn.004b3df0
movzx ecx, ax
cmp ecx, 0x3a
jne 0x41e7d8
mov edx, dword [0x5fd494]
mov dword [ebp - 0x1c], edx
mov ax, word [0x5fd498]
mov word [ebp - 0x18], ax
push 0
mov ecx, dword [ebp + 8]
call fcn.004b3df0
movzx ecx, ax
push ecx
call fcn.0054e33d
add esp, 4
mov word [ebp - 0x20], ax
mov dx, word [ebp - 0x20]
mov word [ebp - 0x1c], dx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x268]
call fcn.004b3550
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x268
call fcn.00446680
mov byte [ebp - 0x259], al
lea ecx, [ebp - 0x268]
call fcn.004b3860
movzx edx, byte [ebp - 0x259]
test edx, edx
je 0x41e49c
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x270], esp
lea eax, [ebp - 0x1c]
push eax
call fcn.004b3550
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x268
call fcn.00431820
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x26c]
jmp 0x41ea0b
mov edx, dword [0x5fd484]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x5fd488]
mov dword [ebp - 0x28], eax
mov cx, word [ebp - 0x20]
mov word [ebp - 0x2c], cx
push 0x105
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x41e51c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x2c]
push edx
push str.GetVolumeInformationW_on__ws_failed_with__d_r_n
call fcn.0054d5e0
add esp, 0xc
mov dword [ebp - 0x274], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x274]
jmp 0x41ea0b
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push str._s___s_r_n
call fcn.0054eca8
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
call fcn.004c3bf0
cmp eax, 1
jne 0x41e5a8
push 8
call fcn.0054d57b
add esp, 4
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x41e581
mov edx, dword [ebp - 0x2bc]
push edx
mov ecx, dword [ebp - 0x27c]
call fcn.004adb10
mov dword [ebp - 0x2c8], eax
jmp 0x41e58b
mov dword [ebp - 0x2c8], 0
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x240], ecx
jmp 0x41e71d
mov dword [ebp - 0x2cc], str.NTFS
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x2d0], edx
mov eax, dword [ebp - 0x2d0]
mov cx, word [eax]
mov word [ebp - 0x2d2], cx
mov edx, dword [ebp - 0x2cc]
cmp cx, word [edx]
jne 0x41e624
cmp word [ebp - 0x2d2], 0
je 0x41e618
mov eax, dword [ebp - 0x2d0]
mov cx, word [eax + 2]
mov word [ebp - 0x2d4], cx
mov edx, dword [ebp - 0x2cc]
cmp cx, word [edx + 2]
jne 0x41e624
add dword [ebp - 0x2d0], 4
add dword [ebp - 0x2cc], 4
cmp word [ebp - 0x2d4], 0
jne 0x41e5be
mov dword [ebp - 0x2d8], 0
jmp 0x41e62f
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x2d8], eax
mov ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2dc], ecx
cmp dword [ebp - 0x2dc], 0
jne 0x41e667
push 0
push 0
mov edx, dword [ebp - 0x2bc]
push edx
movzx eax, word [ebp - 0x20]
push eax
call fcn.004ae800
add esp, 0x10
mov dword [ebp - 0x240], eax
jmp 0x41e71d
mov dword [ebp - 0x2e0], 0x5fd4ec
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2e4]
mov ax, word [edx]
mov word [ebp - 0x2e6], ax
mov ecx, dword [ebp - 0x2e0]
cmp ax, word [ecx]
jne 0x41e6e3
cmp word [ebp - 0x2e6], 0
je 0x41e6d7
mov edx, dword [ebp - 0x2e4]
mov ax, word [edx + 2]
mov word [ebp - 0x2e8], ax
mov ecx, dword [ebp - 0x2e0]
cmp ax, word [ecx + 2]
jne 0x41e6e3
add dword [ebp - 0x2e4], 4
add dword [ebp - 0x2e0], 4
cmp word [ebp - 0x2e8], 0
jne 0x41e67d
mov dword [ebp - 0x2ec], 0
jmp 0x41e6ee
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 0
jne 0x41e71d
mov ecx, dword [ebp - 0x2bc]
push ecx
movzx edx, word [ebp - 0x20]
push edx
call fcn.004ae630
add esp, 8
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x41e77b
push 8
call fcn.0054d57b
add esp, 4
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
je 0x41e759
mov eax, dword [ebp - 0x2bc]
push eax
mov ecx, dword [ebp - 0x284]
call fcn.004adb10
mov dword [ebp - 0x2f4], eax
jmp 0x41e763
mov dword [ebp - 0x2f4], 0
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x280], ecx
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x240]
push eax
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x288], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.004b3550
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x268
call fcn.004a3610
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x28c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x28c]
jmp 0x41ea0b
push 0x5fc5a8
mov ecx, dword [ebp + 8]
call fcn.004b6880
movzx ecx, al
test ecx, ecx
je 0x41e9db
push 2
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.004b4ed0
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jle 0x41e9b8
mov edx, dword [ebp - 0x244]
push edx
push 0
lea eax, [ebp - 0x298]
push eax
mov ecx, dword [ebp + 8]
call fcn.004b6620
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x300], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x250]
push edx
mov ecx, dword [ebp - 0x300]
call fcn.004b6b30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x298]
call fcn.004b3860
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x268
call fcn.00446680
movzx ecx, al
test ecx, ecx
je 0x41e8eb
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x2a0], esp
lea edx, [ebp - 0x250]
push edx
call fcn.004b34d0
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x268
call fcn.00431820
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x29c]
jmp 0x41ea0b
push 8
call fcn.0054d57b
add esp, 4
mov dword [ebp - 0x2a8], eax
cmp dword [ebp - 0x2a8], 0
je 0x41e91e
mov ecx, dword [ebp - 0x2bc]
push ecx
mov ecx, dword [ebp - 0x2a8]
call fcn.004adb10
mov dword [ebp - 0x30c], eax
jmp 0x41e928
mov dword [ebp - 0x30c], 0
mov edx, dword [ebp - 0x30c]
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x2ac], esp
lea edx, [ebp - 0x250]
push edx
call fcn.004b34d0
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x268
call fcn.004a3610
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.004b3860
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x2b0]
jmp 0x41ea0b
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x2b4]
jmp 0x41ea0b
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x2b8]
jmp 0x41ea0b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret 4