Function at 0x4cbc64
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4cbc6c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x4cc340
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], 0
mov eax, dword [esi]
cmp byte [eax + 0xde], 0
jne 0x4cbcbe
mov eax, dword [ebp - 8]
call fcn.004c48e8
call fcn.00409f88
call fcn.0040a4f4
mov eax, dword [esi]
fstp qword [eax + 0xf0]
wait
jmp 0x4cbccc
call fcn.0040be44
mov eax, dword [esi]
fstp qword [eax + 0xf0]
wait
mov eax, dword [esi]
call fcn.004cc3f8
test eax, eax
jle 0x4cbd11
mov eax, dword [esi]
mov eax, dword [eax + 0xec]
test eax, eax
je 0x4cbcfa
mov edx, dword [esi]
cmp byte [edx + 0x38], 7
je 0x4cbcfa
call fcn.00403e5c
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xec], edx
mov eax, dword [esi]
mov eax, dword [eax + 0xe8]
call fcn.00403e5c
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xe8], edx
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
mov edx, dword [ebp - 8]
call fcn.004c4304
mov ebx, eax
test bl, bl
jne 0x4cbdbe
mov eax, dword [esi]
cmp byte [eax + 0xde], 0
jne 0x4cbdbe
lea edx, [ebp - 0x30]
mov eax, dword [esi]
call fcn.004cad08
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x4cc358
call fcn.0040a208
mov eax, dword [ebp - 0x2c]
call fcn.00409e6c
test al, al
je 0x4cbdbe
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x38]
mov eax, dword [esi]
call fcn.004cad08
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 0x4cc358
call fcn.0040a208
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x41bc54]
call fcn.00420ccc
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
mov edx, dword [ebp - 8]
call fcn.004c4304
mov ebx, eax
test bl, bl
je 0x4cbdb0
mov byte [ebp - 0x21], 1
jmp 0x4cbdbe
mov eax, dword [ebp - 8]
call fcn.00403e5c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
test bl, bl
jne 0x4cbea5
mov eax, dword [esi]
cmp byte [eax + 0x18c], 0
jne 0x4cbe44
mov eax, dword [esi]
cmp word [eax + 0x9a], 0
je 0x4cbdf2
mov eax, dword [esi]
lea ecx, [eax + 0x48]
mov ebx, dword [esi]
mov edx, dword [esi]
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
mov eax, dword [esi]
cmp byte [eax + 0x48], 2
jne 0x4cbe1b
lea edx, [ebp - 0x3c]
mov eax, 0xb7
call fcn.00409cd4
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x4c4f98]
call fcn.0040dcb0
call fcn.0040463c
mov eax, dword [esi]
cmp byte [eax + 0x48], 0
jne 0x4cbe44
lea edx, [ebp - 0x40]
mov eax, 0xb6
call fcn.00409cd4
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x4c4f3c]
call fcn.0040dcb0
call fcn.0040463c
mov eax, dword [esi]
cmp byte [eax + 0x48], 1
je 0x4cbe5b
mov eax, dword [esi]
cmp byte [eax + 0x18c], 0
je 0x4cc06f
push ebp
call fcn.004cb8c4
pop ecx
test al, al
jne 0x4cc06f
mov eax, dword [0x4e7154]
mov eax, dword [eax]
xor edx, edx
call fcn.0047899c
mov eax, dword [esi]
call fcn.004cb838
lea edx, [ebp - 0x44]
mov eax, 0xb7
call fcn.00409cd4
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x4c4ee4]
call fcn.0040dcb0
call fcn.0040463c
jmp 0x4cc06f
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
movzx eax, word [eax + 8]
mov edx, dword [esi]
mov dword [edx + 0xfc], eax
cmp byte [ebp - 0x21], 0
je 0x4cbec9
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xfc], edx
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
cmp word [eax + 8], 0
jbe 0x4cbf32
lea ecx, [ebp - 0x48]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.004c4a58
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x1c]
call fcn.00409288
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x4cbf09
mov dl, 2
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4cbf3b
lea eax, [ebp - 0x1c]
call fcn.004c4d84
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4cbf27
mov dl, 1
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4cbf3b
mov dl, 2
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4cbf3b
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
cmp word [eax + 0xe], 0
jbe 0x4cc06f
cmp byte [ebp - 0x21], 0
jne 0x4cbf8c
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4cbf8c
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
movzx eax, word [eax + 0xa]
mov edx, dword [esi]
cmp eax, dword [edx + 0xfc]
je 0x4cbf8c
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [esi]
call fcn.004cb6c8
mov dword [ebp - 8], eax
cmp byte [ebp - 0x21], 0
je 0x4cbfa0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x4cbfb5
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x18], 0x2014b50
je 0x4cc05e
mov eax, dword [esi]
cmp word [eax + 0x9a], 0
je 0x4cbff3
mov eax, dword [esi]
lea ecx, [eax + 0x48]
mov ebx, dword [esi]
mov edx, dword [esi]
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
mov eax, dword [esi]
cmp byte [eax + 0x48], 1
je 0x4cc006
mov eax, dword [esi]
cmp byte [eax + 0x18c], 0
je 0x4cc03b
push ebp
call fcn.004cb8c4
pop ecx
test al, al
jne 0x4cc06f
mov eax, dword [esi]
call fcn.004cb838
lea edx, [ebp - 0x4c]
mov eax, 0xb7
call fcn.00409cd4
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4c4ee4]
call fcn.0040dcb0
call fcn.0040463c
jmp 0x4cc06f
lea edx, [ebp - 0x50]
mov eax, 0xb7
call fcn.00409cd4
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x4c4ee4]
call fcn.0040dcb0
call fcn.0040463c
jmp 0x4cc06f
mov cx, 1
mov edx, 0xfffffffc
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [esi]
call fcn.004cc3f8
test eax, eax
jne 0x4cc09e
mov cl, 2
mov dl, 1
mov eax, dword [0x4c3760]
call fcn.004c44f8
mov ebx, eax
mov eax, dword [esi]
mov dword [eax + 0xe8], ebx
mov byte [ebx + 0x18], 7
mov eax, dword [esi]
mov dword [eax + 0xec], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
movzx eax, word [eax + 0xe]
dec eax
test eax, eax
jl 0x4cc277
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
mov dl, 1
mov eax, dword [0x4c35a0]
call fcn.004c382c
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
cmp byte [eax + 0xf8], 0
jne 0x4cc0e3
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4cc0f6
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004c3d34
mov ebx, eax
jmp 0x4cc10b
mov eax, dword [esi]
push eax
push 0x4cb814
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004c3d34
mov ebx, eax
test bl, bl
jne 0x4cc19d
mov eax, dword [esi]
cmp word [eax + 0x9a], 0
je 0x4cc134
mov eax, dword [esi]
lea ecx, [eax + 0x48]
mov ebx, dword [esi]
mov edx, dword [esi]
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
mov eax, dword [esi]
cmp byte [eax + 0x48], 1
je 0x4cc147
mov eax, dword [esi]
cmp byte [eax + 0x18c], 0
je 0x4cc17c
push ebp
call fcn.004cb8c4
pop ecx
test al, al
jne 0x4cc19d
mov eax, dword [esi]
call fcn.004cb838
lea edx, [ebp - 0x54]
mov eax, 0xb7
call fcn.00409cd4
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x4c4ee4]
call fcn.0040dcb0
call fcn.0040463c
jmp 0x4cc19d
lea edx, [ebp - 0x58]
mov eax, 0xb7
call fcn.00409cd4
mov ecx, dword [ebp - 0x58]
mov dl, 1
mov eax, dword [0x4c4ee4]
call fcn.0040dcb0
call fcn.0040463c
mov eax, dword [esi]
cmp byte [eax + 0xf8], 0
je 0x4cc20a
lea ecx, [ebp - 0x14]
mov eax, dword [esi]
mov eax, dword [eax + 0xe8]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
test al, al
je 0x4cc1fb
mov eax, dword [esi]
mov eax, dword [eax + 0xe8]
mov edx, dword [ebp - 0x14]
call fcn.004c22d0
mov edx, dword [0x4c35a0]
call fcn.00404018
mov ebx, eax
mov edi, dword [ebx + 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebx + 0x2c], edi
mov eax, dword [ebp - 0xc]
call fcn.00403e5c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4cc20a
mov eax, dword [ebp - 0xc]
call fcn.00403e5c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4cc26b
mov eax, dword [esi]
cmp byte [eax + 0xf8], 0
jne 0x4cc225
mov eax, dword [esi]
mov eax, dword [eax + 0xe8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
cmp word [eax + 8], 0
jbe 0x4cc24d
mov eax, dword [ebp - 0xc]
call fcn.004c3f94
test al, al
je 0x4cc24d
lea ecx, [ebp - 0x5c]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.004cafc8
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [esi]
movzx eax, word [eax + 0x146]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x4cc0be
mov eax, dword [esi]
mov ebx, dword [eax + 0x154]
cmp word [ebx + 8], 0
jbe 0x4cc2c5
mov eax, ebx
call fcn.004c4488
test al, al
je 0x4cc2c5
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
mov ax, word [eax + 8]
movzx edx, ax
mov ecx, dword [esi]
cmp edx, dword [ecx + 0xfc]
je 0x4cc2bb
cmp byte [ebp - 0x21], 0
jne 0x4cc2bb
movzx edx, ax
inc edx
mov eax, dword [esi]
call fcn.004cb6c8
lea edx, [ebp - 0x60]
mov eax, dword [esi]
call fcn.004cb174
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
movzx eax, word [eax + 8]
inc eax
mov edx, dword [esi]
mov dword [edx + 0x4c], eax
cmp byte [ebp - 0x21], 0
jne 0x4cc2f3
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
movzx eax, word [eax + 8]
mov edx, dword [esi]
mov dword [edx + 0xfc], eax
jmp 0x4cc2fd
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xfc], edx
mov eax, dword [esi]
mov dl, byte [eax + 0x38]
mov eax, dword [esi]
call fcn.004cc360
cmp byte [ebp - 0x21], 0
je 0x4cc31d
mov eax, dword [ebp - 8]
call fcn.00403e5c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc347
lea eax, [ebp - 0x60]
mov edx, 0xe
call fcn.00404cf0
lea eax, [ebp - 0x1c]
call fcn.00404ccc
ret