Function at 0x40d340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f578
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x45c]
push 0xc
push str.000000000000
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0xf
mov byte [ebp - 0x45c], 0
call fcn.00412800
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 2
call fcn.00412930
mov eax, dword [ebp - 0x4b4]
mov ebx, eax
mov edi, dword [ebp - 0x4b0]
cmp ebx, edi
je 0x40d5a2
cmp dword [ebx + 0x10], 0
je 0x40d59a
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
push 6
push 0
lea edx, [ebp - 0x444]
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.00410a90
mov edi, dword [ebp - 0x430]
lea ecx, [ebp - 0x444]
mov esi, dword [ebp - 0x444]
add esp, 8
cmp edi, 0x10
jb 0x40d43e
mov ecx, esi
mov edx, dword [ebp - 0x434]
push 6
push str.000000
call fcn.004112f0
add esp, 8
test al, al
je 0x40d48e
mov byte [ebp - 4], 2
cmp edi, 0x10
jb 0x40d594
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40d58a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
jmp 0x40d58a
mov ecx, ebx
call fcn.00412b90
test al, al
jne 0x40d457
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x40d4a3
mov edx, dword [ebx]
cmp dword [ebp - 0x448], 0x10
lea ecx, [ebp - 0x45c]
jb 0x40d4b8
mov ecx, dword [ebp - 0x45c]
mov eax, dword [ebx + 0x10]
mov edi, eax
cmp eax, dword [ebp - 0x44c]
jb 0x40d4cb
mov edi, dword [ebp - 0x44c]
sub edi, 4
jb 0x40d4e1
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40d4e6
add ecx, 4
add edx, 4
sub edi, 4
jae 0x40d4d0
cmp edi, 0xfffffffc
je 0x40d51a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40d513
cmp edi, 0xfffffffd
je 0x40d51a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40d513
cmp edi, 0xfffffffe
je 0x40d51a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40d513
cmp edi, 0xffffffff
je 0x40d51a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40d51a
sbb eax, eax
or eax, 1
jmp 0x40d51c
xor eax, eax
mov ecx, dword [ebx + 0x10]
test eax, eax
jne 0x40d534
cmp ecx, dword [ebp - 0x44c]
jbe 0x40d530
or eax, 0xffffffff
jmp 0x40d534
sbb eax, eax
neg eax
shr eax, 0x1f
test al, al
je 0x40d55c
lea eax, [ebp - 0x45c]
cmp eax, ebx
je 0x40d55c
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x40d54f
mov eax, dword [ebx]
push ecx
push eax
lea ecx, [ebp - 0x45c]
call fcn.00412800
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x430]
cmp ecx, 0x10
jb 0x40d594
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x40d58a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push ecx
push esi
call fcn.00414cce
add esp, 8
mov edi, dword [ebp - 0x4b0]
add ebx, 0x18
jmp 0x40d3e0
cmp dword [ebp - 0x448], 0x10
lea ecx, [ebp - 0x45c]
jb 0x40d5b7
mov ecx, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x44c]
push 0xc
push str.000000000000
call fcn.004112f0
add esp, 8
test al, al
je 0x40d5fd
mov esi, dword [ebp - 0x4b4]
cmp esi, edi
je 0x40d5fd
lea eax, [ebp - 0x45c]
cmp eax, esi
je 0x40d5fd
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40d5ee
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x45c]
push eax
call fcn.00412800
push 0x20a
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x4bc], 0
push 0
push eax
call fcn.00416710
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00416710
add esp, 0x18
mov dword [ebp - 0x47c], 0
xor eax, eax
mov dword [ebp - 0x478], 7
lea ecx, [ebp - 0x48c]
mov word [ebp - 0x48c], ax
push 3
push 0x43de30
call fcn.00408ac0
push 0x105
lea eax, [ebp - 0x220]
mov dword [ebp - 0x4a8], 0
push eax
lea eax, [ebp - 0x4b8]
mov dword [ebp - 0x4b8], 0
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x4bc]
push eax
push 0x105
lea eax, [ebp - 0x42c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, dword [ebp - 0x4bc]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x478]
cmp edx, 8
jb 0x40d6f2
mov ecx, dword [ebp - 0x48c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d6e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
sub esp, 8
lea ecx, [ebp - 0x56c]
call fcn.0040df20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x548]
mov eax, dword [ebp - 0x55c]
push esi
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea ecx, [ebp - 0x55c]
call fcn.0040e8f0
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x554]
call fcn.0040fb10
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x464]
cmp edx, 8
jae 0x40d950
xor esi, esi
mov byte [ebp - 0x444], 0
mov ecx, 0xf
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], ecx
mov eax, 8
mov byte [ebp - 4], 7
sub eax, edx
xor ebx, ebx
mov dword [ebp - 0x4b8], eax
cmp ebx, eax
jae 0x40d812
mov eax, ecx
sub eax, esi
cmp eax, 1
jb 0x40d7d9
lea eax, [esi + 1]
mov dword [ebp - 0x434], eax
lea edi, [ebp - 0x444]
cmp ecx, 0x10
jb 0x40d7ac
mov edi, dword [ebp - 0x444]
push 1
lea eax, [esi + edi]
push 0x43dbc0
push eax
call fcn.00415e70
mov eax, dword [ebp - 0x4b8]
add esp, 0xc
mov byte [edi + esi + 1], 0
inc ebx
mov ecx, dword [ebp - 0x430]
mov esi, dword [ebp - 0x434]
jmp 0x40d781
push 1
push 0x43dbc0
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x444]
push dword [ebp - 0x4a8]
push 1
call fcn.00412660
mov ecx, dword [ebp - 0x430]
inc ebx
mov esi, dword [ebp - 0x434]
mov eax, dword [ebp - 0x4b8]
jmp 0x40d781
lea eax, [ebp - 0x474]
push eax
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x48c]
call fcn.00410bb0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x474]
cmp eax, esi
je 0x40d8d8
mov edx, dword [ebp - 0x460]
cmp edx, 0x10
jb 0x40d877
mov ecx, dword [ebp - 0x474]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d86d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 0xf
mov byte [ebp - 0x474], 0
mov eax, dword [esi]
mov dword [ebp - 0x474], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x470], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x46c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x468], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x464], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x460], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x478]
cmp edx, 0x10
jb 0x40d912
mov ecx, dword [ebp - 0x48c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d908
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x40d950
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d946
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
cmp dword [ebp - 0x448], 0x10
lea ecx, [ebp - 0x45c]
jb 0x40d965
mov ecx, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x44c]
push 0xc
push str.000000000000
call fcn.004112f0
add esp, 8
test al, al
je 0x40db05
push 8
push str.FFFFFFFF
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
call fcn.00412800
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x474]
cmp dword [ebp - 0x460], 0x10
jb 0x40d9c8
mov ecx, dword [ebp - 0x474]
mov edx, dword [ebp - 0x430]
mov eax, edx
mov edi, dword [ebp - 0x434]
sub eax, edi
mov esi, dword [ebp - 0x464]
cmp esi, eax
ja 0x40da19
lea eax, [edi + esi]
mov dword [ebp - 0x434], eax
lea ebx, [ebp - 0x444]
cmp edx, 0x10
jb 0x40d9fc
mov ebx, dword [ebp - 0x444]
push esi
push ecx
lea eax, [edi + ebx]
push eax
call fcn.00415e70
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ebx], 0
lea edx, [ebp - 0x444]
jmp 0x40da36
push esi
push ecx
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x444]
push dword [ebp - 0x4a8]
push esi
call fcn.00412660
mov edx, eax
mov eax, dword [edx + 8]
mov ecx, dword [edx]
mov dword [ebp - 0x484], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x480], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x47c], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x48c], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x488], ecx
lea ecx, [ebp - 0x45c]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
push eax
mov byte [edx], 0
call fcn.0040de90
mov edx, dword [ebp - 0x478]
cmp edx, 0x10
jb 0x40dac8
mov ecx, dword [ebp - 0x48c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dabe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x40db7a
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40db70
jmp 0x40dd45
lea edx, [ebp - 0x474]
push 4
push 4
mov ecx, edx
call fcn.00410a90
add esp, 8
lea eax, [ebp - 0x474]
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x48c]
push eax
call fcn.00410bb0
add esp, 4
lea ecx, [ebp - 0x45c]
push eax
call fcn.0040de90
mov edx, dword [ebp - 0x478]
cmp edx, 0x10
jb 0x40db7a
mov ecx, dword [ebp - 0x48c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x4a4]
call fcn.00413020
mov esi, dword [ebp - 0x494]
inc esi
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40dbcb
cmp dword [ebp - 0x490], 8
lea ecx, [ebp - 0x4a4]
jb 0x40dbc0
mov ecx, dword [ebp - 0x4a4]
push ecx
push esi
push edi
call fcn.0041a06a
add esp, 0xc
mov edx, dword [ebp - 0x490]
cmp edx, 8
jb 0x40dc0b
mov ecx, dword [ebp - 0x4a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
mov edx, dword [ebp - 0x460]
xor eax, eax
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x490], 7
mov word [ebp - 0x4a4], ax
cmp edx, 0x10
jb 0x40dc62
mov ecx, dword [ebp - 0x474]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
lea ecx, [ebp - 0x56c]
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 0xf
mov byte [ebp - 0x474], 0
call fcn.0040dd50
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x40dce7
push dword [ebp - 0x4b0]
push eax
call fcn.00410910
mov ecx, dword [ebp - 0x4ac]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x4b4]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40dcdd
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push ecx
push esi
call fcn.00414cce
add esp, 8
mov edx, dword [ebp - 0x448]
cmp edx, 0x10
jb 0x40dd1d
mov ecx, dword [ebp - 0x45c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd45
push edx
push ecx
call fcn.00414cce
add esp, 8
mov eax, edi
jmp 0x40dd29
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
call fcn.0041a372
int3