Function at 0x4a4bd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4a4bd9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4a54f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x6c], edx
cmp dword [ebp - 8], 0
jne 0x4a4c30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4a4c30
xor ecx, ecx
mov edx, 0x283d
mov eax, dword [ebp - 4]
call fcn.004a36ac
jmp 0x4a54c6
cmp dword [ebp - 8], 2
jge 0x4a4c53
mov eax, dword [ebp - 4]
cmp dword [eax + 0x68], 0
jne 0x4a4c53
xor ecx, ecx
mov edx, 0x2776
mov eax, dword [ebp - 4]
call fcn.004a36ac
jmp 0x4a54c6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x17c], 0
je 0x4a4c85
mov eax, dword [ebp - 4]
test byte [eax + 0x35], 4
je 0x4a4c85
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4a4c85
xor ecx, ecx
mov edx, 0x283e
mov eax, dword [ebp - 4]
call fcn.004a36ac
jmp 0x4a54c6
cmp dword [ebp - 8], 2
jge 0x4a4c94
mov eax, dword [ebp - 4]
test byte [eax + 0x35], 0x40
jne 0x4a4ca1
mov eax, dword [ebp - 4]
test byte [eax + 0x35], 0x80
je 0x4a4d53
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 8
jne 0x4a4cb3
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 0x10
je 0x4a4cc7
xor ecx, ecx
mov edx, 0x283f
mov eax, dword [ebp - 4]
call fcn.004a36ac
jmp 0x4a54c6
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0040976c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004084d4
mov eax, dword [ebp - 0x2c]
mov edx, 0x4a550c
call fcn.00404694
jne 0x4a4d03
xor ecx, ecx
mov edx, 0x2b21
mov eax, dword [ebp - 4]
call fcn.004a36ac
jmp 0x4a54c6
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a5c3c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x54], 0
je 0x4a4d61
mov eax, dword [ebp - 4]
cmp word [eax + 0x272], 0
je 0x4a4d61
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4a551c
call fcn.00404594
mov eax, dword [ebp - 0x34]
push eax
mov edi, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x274]
call dword [edi + 0x270]
jmp 0x4a4d61
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
call fcn.00404320
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 0
jne 0x4a54c6
cmp dword [ebp - 8], 2
jge 0x4a4e3e
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0040976c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004084d4
mov eax, dword [ebp - 0x38]
mov edx, 0x4a550c
call fcn.00404694
jne 0x4a4e3e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 0
jne 0x4a4e3e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00409260
test al, al
jne 0x4a4e3e
xor edx, edx
push ebp
push 0x4a4e14
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x17d], 1
mov eax, dword [ebp - 4]
call fcn.004aa060
mov edi, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x17d], 0
test edi, edi
je 0x4a4e0a
push edi
mov ecx, 0x2840
mov dl, 1
mov eax, dword [0x4a1370]
call fcn.004a72a0
call fcn.00403c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a4e3e
lea edx, [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004a63f4
mov edi, eax
test edi, edi
je 0x4a54c6
mov eax, dword [ebp - 4]
mov byte [eax + 0x60], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x3a], 0
xor edx, edx
push ebp
push 0x4a548f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4a538d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0xd8
call fcn.00408450
mov edx, dword [ebp - 4]
mov dword [edx + 0x254], eax
lea edx, [ebp - 0x10]
mov ecx, edi
mov eax, dword [ebp - 4]
call fcn.004a429c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x254]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 8], 1
jne 0x4a4efc
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xa8], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xac], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xb4], edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xb8], esi
cmp dword [ebp - 8], 2
jne 0x4a4f5e
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x9c], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xa0], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
add eax, 6
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xa4], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xa8], 0xffffffff
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xac], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [eax]
call dword [edx + 0x14]
imul eax, eax, 0x68
call fcn.00408450
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4a5205
inc eax
mov dword [ebp - 0x28], eax
xor esi, esi
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x40]
call fcn.00404548
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 0x8c]
imul eax, esi, 0x68
add ebx, eax
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 0x4c]
mov word [ebx + 0x14], ax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x48]
mov ecx, 1
mov edx, 1
call fcn.004047a8
mov eax, dword [ebp - 0x44]
mov edx, 0x4a5538
call fcn.00404694
jne 0x4a500d
mov word [ebx + 0x14], 0xffff
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x50]
mov ecx, 1
mov edx, 1
call fcn.004047a8
mov eax, dword [ebp - 0x4c]
mov edx, 0x4a5544
call fcn.00404694
jne 0x4a504b
mov word [ebx + 0x14], 0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x14]
call fcn.00404480
mov eax, dword [ebp - 0x54]
call fcn.00404548
test eax, eax
jle 0x4a50b4
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x14]
call fcn.00404480
mov eax, dword [ebp - 0x58]
call fcn.00404548
inc eax
call fcn.00409b48
mov edi, eax
mov dword [ebx + 0xc], edi
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x14]
call fcn.00404480
mov eax, dword [ebp - 0x5c]
call fcn.00404548
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x14]
mov eax, edi
call fcn.004099ac
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x60]
mov eax, 0x4a5550
call fcn.0040d8e0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a5172
mov dword [ebx + 0x10], 0xffff
mov eax, dword [ebx + 0xc]
call fcn.00409b94
xor eax, eax
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x18]
inc edx
mov ecx, 1
call fcn.004047a8
cmp dword [ebp - 0x64], 0
jne 0x4a5124
xor eax, eax
mov dword [ebx + 0x10], eax
jmp 0x4a5172
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
call fcn.00409b48
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
inc edx
call fcn.004047a8
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
inc ecx
mov eax, dword [ebx + 0xc]
call fcn.00409a04
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x228], 0
je 0x4a51b2
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
call fcn.004097b4
mov eax, dword [ebp - 0x20]
call fcn.00404548
mov edi, eax
lea eax, [edi + 1]
call fcn.00409b48
mov dword [ebx + 0x24], eax
lea ecx, [edi + 1]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebp - 0x20]
call fcn.00409a04
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
add eax, 2
call fcn.00409b48
mov dword [ebx], eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
inc ecx
mov edx, dword [ebp - 0x1c]
call fcn.004047a8
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
add ecx, 2
mov eax, dword [ebx]
call fcn.00409a04
inc esi
dec dword [ebp - 0x28]
jne 0x4a4f94
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xd4], 7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x254]
mov dword [ebx + 0x78], eax
push ebx
mov eax, dword [ebp - 4]
call dword [eax + 0x23c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
cmp dword [ebp - 8], 2
jge 0x4a5353
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
jle 0x4a5353
mov eax, dword [ebp - 4]
test byte [eax + 0x35], 0x40
jne 0x4a5266
mov eax, dword [ebp - 4]
test byte [eax + 0x35], 0x80
je 0x4a5353
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004a8bc8
test eax, eax
jne 0x4a5343
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a4]
call fcn.00404748
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4a52a1
cmp eax, 4
jne 0x4a534b
lea eax, [ebp - 0x7c]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0040976c
mov eax, dword [ebp - 0x80]
call fcn.00404548
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00404548
mov ecx, eax
pop eax
sub ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, 1
call fcn.004047a8
push dword [ebp - 0x7c]
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1b0]
add eax, 0x3e9
call fcn.00408c04
mov eax, dword [ebp - 0x88]
mov ecx, 3
mov edx, 2
call fcn.004047a8
push dword [ebp - 0x84]
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0040976c
push dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
add eax, 0x68
mov edx, 3
call fcn.00404608
jmp 0x4a534b
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 0x10]
call fcn.00409540
cmp dword [ebp - 8], 2
jne 0x4a5383
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 1
jne 0x4a5383
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x254]
mov eax, dword [eax + 0xa4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a53a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5499
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x254]
mov eax, dword [edi + 0x7c]
call fcn.00409b94
mov eax, dword [edi + 0x14]
call fcn.00409b94
mov eax, dword [edi + 0x18]
call fcn.00409b94
xor eax, eax
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x80]
call fcn.00409b94
mov eax, dword [edi + 0x84]
call fcn.00409b94
mov esi, dword [edi + 0x78]
dec esi
cmp esi, 0
jl 0x4a5439
mov ebx, dword [edi + 0x8c]
imul eax, esi, 0x68
add ebx, eax
mov eax, dword [ebx]
call fcn.00409b94
mov eax, dword [ebx + 0xc]
call fcn.00409b94
mov eax, dword [ebx + 0x24]
call fcn.00409b94
dec esi
cmp esi, 0xffffffff
jne 0x4a5411
mov eax, dword [edi + 0x8c]
call fcn.00402768
mov esi, dword [edi + 0x94]
dec esi
cmp esi, 0
jl 0x4a546a
mov eax, dword [edi + 0x98]
mov edx, esi
shl edx, 2
add eax, edx
mov eax, dword [eax]
call fcn.00409b94
dec esi
cmp esi, 0xffffffff
jne 0x4a5450
mov eax, dword [edi + 0x98]
call fcn.00402768
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x254]
call fcn.00402768
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x254], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a54fb
lea eax, [ebp - 0x8c]
mov edx, 0x19
call fcn.004042ac
lea eax, [ebp - 0x20]
call fcn.00404288
lea eax, [ebp - 0x10]
call fcn.00404288
ret