Function at 0x4b0da8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4b0db0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b15b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x519cac]
mov eax, dword [eax]
movzx esi, word [eax + 0x44]
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xec], 0
jne 0x4b0e11
mov eax, dword [ebp - 8]
call fcn.004a8a08
call fcn.00434cdc
call fcn.00435500
mov eax, dword [ebp - 4]
fstp qword [eax + 0x100]
wait
jmp 0x4b0e20
call fcn.00436d04
mov eax, dword [ebp - 4]
fstp qword [eax + 0x100]
wait
mov eax, dword [ebp - 4]
call fcn.004b1670
test eax, eax
jle 0x4b0e6b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x4b0e47
mov edx, dword [ebp - 4]
cmp byte [edx + 0x38], 7
je 0x4b0e47
call fcn.0044763c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
call fcn.0044763c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov edx, dword [ebp - 8]
call fcn.004a75bc
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx edx, word [eax + 8]
cmp dx, 0x3e7
ja 0x4b0ea6
cmp word [eax + 0xa], 0x3e7
ja 0x4b0ea6
cmp dx, word [eax + 0xa]
jb 0x4b0ea6
cmp dword [eax + 0x14], 0
jge 0x4b0ea8
xor ebx, ebx
test bl, bl
jne 0x4b0f47
mov eax, dword [ebp - 4]
cmp byte [eax + 0xec], 0
jne 0x4b0f47
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004afbb8
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 0x4b15d0
call fcn.0043507c
mov eax, dword [ebp - 0x34]
call fcn.00434b44
test al, al
je 0x4b0f47
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004afbb8
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov edx, 0x4b15d0
call fcn.0043507c
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x41bf6c]
call fcn.00421e7c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov edx, dword [ebp - 8]
call fcn.004a75bc
mov ebx, eax
test bl, bl
je 0x4b0f39
mov byte [ebp - 0x2d], 1
jmp 0x4b0f47
mov eax, dword [ebp - 8]
call fcn.0044763c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
test bl, bl
jne 0x4b1038
mov eax, dword [ebp - 4]
cmp byte [eax + 0x170], 0
jne 0x4b0fd4
mov eax, dword [ebp - 4]
cmp word [eax + 0x9a], 0
je 0x4b0f80
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x48]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 2
jne 0x4b0faa
lea edx, [ebp - 0x44]
mov eax, 0xb7
call fcn.00434970
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x4a9c4c]
call fcn.00438fe8
call fcn.00447ef0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 0
jne 0x4b0fd4
lea edx, [ebp - 0x48]
mov eax, 0xb6
call fcn.00434970
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x4a9bf0]
call fcn.00438fe8
call fcn.00447ef0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 1
je 0x4b0fed
mov eax, dword [ebp - 4]
cmp byte [eax + 0x170], 0
je 0x4b1154
push ebp
call fcn.004b09b4
pop ecx
test al, al
jne 0x4b1154
mov eax, dword [0x519cac]
mov eax, dword [eax]
mov edx, esi
call fcn.0047c758
mov eax, dword [ebp - 4]
call fcn.004b0824
lea edx, [ebp - 0x4c]
mov eax, 0xb7
call fcn.00434970
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4a9b98]
call fcn.00438fe8
call fcn.00447ef0
jmp 0x4b1154
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10c], eax
cmp byte [ebp - 0x2d], 0
je 0x4b105f
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
cmp word [eax + 8], 0
jbe 0x4b10cd
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.004a8b68
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x10]
call fcn.0043373c
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0x3a
je 0x4b10a2
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4b10d7
lea eax, [ebp - 0x10]
call fcn.004a8e8c
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jne 0x4b10c1
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4b10d7
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4b10d7
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
cmp word [eax + 0xe], 0
jbe 0x4b1154
cmp byte [ebp - 0x2d], 0
jne 0x4b112a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4b112a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 0xa]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x10c]
je 0x4b112a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [ebp - 4]
call fcn.004b0694
mov dword [ebp - 8], eax
cmp byte [ebp - 0x2d], 0
je 0x4b113e
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
jmp 0x4b1154
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
call fcn.004b1670
test eax, eax
jne 0x4b1186
mov cl, 2
mov dl, 1
mov eax, dword [0x4a6a14]
call fcn.004a7794
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xf4], ebx
mov byte [ebx + 0x18], 7
mov eax, dword [ebp - 4]
mov dword [eax + 0xf8], ebx
mov word [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4b145f
mov eax, dword [ebp - 4]
call fcn.004b080c
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
jne 0x4b11bb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4b11ce
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004a700c
mov ebx, eax
jmp 0x4b11e4
mov eax, dword [ebp - 4]
push eax
push 0x4b07e8
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004a700c
mov ebx, eax
inc esi
test bl, bl
jne 0x4b121b
cmp esi, 1
jne 0x4b121b
cmp word [ebp - 0x30], 0
jbe 0x4b121b
cmp dword [ebp - 0x1c], 0
je 0x4b1204
mov eax, dword [ebp - 0x1c]
mov word [eax + 0x1e], 0
movzx edx, word [ebp - 0x30]
neg edx
mov cx, 1
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x14]
xor eax, eax
mov dword [ebp - 0x1c], eax
test bl, bl
jne 0x4b122f
cmp esi, 2
je 0x4b122f
cmp word [ebp - 0x30], 0
jne 0x4b11a3
mov word [ebp - 0x30], 0
test bl, bl
jne 0x4b12b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
je 0x4b1257
mov eax, dword [ebp - 0xc]
call fcn.0044763c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4b1475
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4b126e
push ebp
call fcn.004b09b4
pop ecx
test al, al
jne 0x4b12a6
mov eax, dword [ebp - 0xc]
call fcn.0044763c
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b0824
lea edx, [ebp - 0x54]
mov eax, 0xb7
call fcn.00434970
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x4a9b98]
call fcn.00438fe8
call fcn.00447ef0
jmp 0x4b12b0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4b145f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
je 0x4b135a
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
test al, al
je 0x4b1345
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 0x24]
call fcn.004a9548
mov edx, dword [0x4a6854]
call fcn.004477ec
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x22]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0044763c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4b135a
mov eax, dword [ebp - 0xc]
call fcn.0044763c
xor eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x20]
jmp 0x4b145f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
jne 0x4b13ed
xor eax, eax
push ebp
push 0x4b1393
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b13ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
cmp word [eax + 8], 0
jbe 0x4b1417
mov eax, dword [ebp - 0xc]
call fcn.004a7248
test al, al
je 0x4b1417
lea ecx, [ebp - 0x5c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004aff18
cmp dword [ebp - 0xc], 0
je 0x4b1456
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x22]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x1e], 0
jbe 0x4b145c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x1e]
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x4b145c
mov word [ebp - 0x30], 0
inc dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 0xe]
cmp eax, dword [ebp - 0x20]
jg 0x4b1196
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x138]
cmp word [ebx + 8], 0
jbe 0x4b1531
mov eax, ebx
call fcn.004a7724
test al, al
je 0x4b1531
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 8]
movzx edx, ax
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x10c]
je 0x4b14c5
cmp byte [ebp - 0x2d], 0
jne 0x4b14c5
movzx edx, ax
inc edx
mov eax, dword [ebp - 4]
call fcn.004b0694
cmp byte [ebp - 0x2d], 0
jne 0x4b14d8
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004b00f8
jmp 0x4b1531
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov edx, dword [eax + 0x20]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx ebx, word [eax + 0x18]
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00448c48
lea eax, [ebp - 0x14]
call fcn.004489cc
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004b01f4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov byte [eax + 0x24], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 8]
inc eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
cmp byte [ebp - 0x2d], 0
jne 0x4b1563
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10c], eax
jmp 0x4b156e
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10c], edx
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x38]
mov eax, dword [ebp - 4]
call fcn.004b15d8
cmp byte [ebp - 0x2d], 0
je 0x4b1591
mov eax, dword [ebp - 8]
call fcn.0044763c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b15c0
lea eax, [ebp - 0x60]
mov edx, 0xc
call fcn.004484b8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004484b8
ret