Function at 0x50f23c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404150
xor eax, eax
push ebp
push 0x50fbbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x111c], 0
call sub.kernel32.dll_GetTickCount
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 0
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 0x117c], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x106c], 0
jne 0x50fb87
xor edx, edx
push ebp
push 0x50faf7
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x50f899
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x49c]
xor edx, edx
call fcn.00495814
cmp dword [ebp - 8], 0
jne 0x50f3e4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x320]
lea eax, [ebx + 0x64]
mov edx, 0x50fbd8
call fcn.00403d74
lea eax, [ebx + 0x54]
mov edx, 0x50fbf4
call fcn.00403d74
mov eax, dword [0x50fc50]
not eax
and eax, dword [ebx + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [0x50fc54]
not eax
and eax, dword [ebx + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe35], 0
je 0x50f346
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe35]
call fcn.0040910c
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.004453dc
jmp 0x50f35d
lea edx, [ebp - 0x28]
mov eax, dword [0x541f28]
call fcn.0047cb44
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.004453dc
xor eax, eax
push ebp
push 0x50f3dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
mov edx, dword [eax]
call dword [edx + 0x34]
test al, al
je 0x50f3a3
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
call fcn.00445364
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
test byte [eax + 0x50], 1
setne al
mov byte [ebp - 0x11], al
jmp 0x50f3ba
call fcn.00403818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403818
jmp 0x50fb87
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f3e4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x320]
mov eax, dword [ebx + 0x50]
or eax, dword [0x50fc50]
mov dword [ebx + 0x50], eax
ret
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.0047cd74
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 8]
call fcn.00403db8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.0040920c
cmp dword [ebp - 0x28], 0
jne 0x50f418
lea eax, [ebp - 8]
mov edx, 0x50fc60
call fcn.00403fa4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10ec], 0
je 0x50f442
mov eax, dword [ebp - 4]
call fcn.005122b8
test al, al
jne 0x50f442
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403818
jmp 0x50fb87
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
mov eax, dword [eax + 0x138]
mov edx, 6
call fcn.0047b2d8
push eax
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, 0x50fc70
call fcn.00403fe8
mov edx, dword [ebp - 0x28]
pop eax
call fcn.0047a964
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
xor edx, edx
call fcn.00441f78
mov eax, dword [0x541ef4]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00434dfc
mov eax, dword [ebp - 4]
mov byte [eax + 0x106c], 1
xor eax, eax
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4ce4cc]
call fcn.004ce62c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10ec], ebx
mov dword [ebx + 0x130], 0x507534
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2bc]
mov dword [ebx + 0xc4], eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004cec94
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x50f511
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov byte [eax + 0xc9], 1
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
mov cx, word [0x50fc50]
xor edx, edx
mov eax, 0x50fc84
call fcn.00446664
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x28]
mov ecx, 0x50fd64
call fcn.00403fe8
mov eax, dword [ebp - 0x28]
call fcn.00408e88
test al, al
je 0x50f556
mov ecx, 0x50fd64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
add eax, 0xcf4
call fcn.00403fe8
jmp 0x50f56c
mov eax, dword [ebp - 4]
add eax, 0xcf4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xd1c]
call fcn.00403d74
mov eax, dword [ebp - 4]
call fcn.0050abe8
lea eax, [ebp - 0x1c]
call fcn.00403d20
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc]
call fcn.00409140
lea eax, [ebp - 0x28]
mov edx, 0x50fd74
call fcn.00403fa4
mov eax, dword [ebp - 0x28]
call fcn.00404160
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x50f5b4.3
jmp dword [eax*4 + 0x50f5bb]
lea eax, [ebp - 0x1c]
mov edx, 0x50fd80
call fcn.00403db8
jmp case.0x50f5b4.3
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe55], 0
je case.0x50f5b4.3
lea eax, [ebp - 0x1c]
mov edx, 0x50fd94
call fcn.00403db8
jmp case.0x50f5b4.3
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe56], 0
je case.0x50f5b4.3
lea eax, [ebp - 0x1c]
mov edx, 0x50fda8
call fcn.00403db8
jmp case.0x50f5b4.3
lea eax, [ebp - 0x1c]
mov edx, 0x50fdbc
call fcn.00403db8
jmp case.0x50f5b4.3
lea eax, [ebp - 0x1c]
mov edx, 0x50fdd0
call fcn.00403db8
cmp dword [ebp - 0x1c], 0
je 0x50f6c4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x10ec]
mov byte [ebx + 0xc9], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe57], 0
je 0x50f6c4
push 0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [ebx + 0xc]
call fcn.004091d4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc]
call fcn.00409140
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x40]
mov ecx, 2
mov eax, 0x50fde0
call fcn.00409cb0
mov eax, dword [ebp - 0x28]
mov cx, word [0x50fc50]
mov dl, 2
call fcn.004b93a4
mov eax, dword [ebp - 4]
mov byte [eax + 0xd74], 0x2e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x698]
xor edx, edx
call fcn.0042cf9c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x69c]
xor edx, edx
call fcn.0042cf9c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb08]
xor edx, edx
call fcn.00424fb8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00513214
mov eax, dword [ebp - 4]
call fcn.005114bc
mov byte [ebp - 0x12], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
mov eax, dword [eax + 0x138]
mov edx, 6
call fcn.0047b2d8
mov edx, 0x50fe38
call fcn.0047a964
xor edx, edx
push ebp
push 0x50f885
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf49], 0
je 0x50f811
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc0]
mov eax, dword [eax + 8]
test eax, eax
jle 0x50f811
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x10]
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc0]
call fcn.004ce5d8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov al, byte [eax + 0x63]
sub al, 1
jae 0x50f805
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xa0]
xor edx, edx
mov dword [eax + 0x1b4], edx
mov dword [eax + 0x1b8], edx
xor edx, edx
push ebp
push 0x50f7fe
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x94]
mov ecx, dword [eax]
call dword [ecx + 0x90]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f805
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 4]
mov dword [eax + 0x1b8], edx
mov dword [eax + 0x1b4], fcn.00513d70
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x20]
jne 0x50f779
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf2a], 0
je 0x50f83e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x50f84f
mov ecx, eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0051e42c
jmp 0x50f84f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
xor edx, edx
mov dword [eax + 0xd0], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
cmp dword [eax + 0xd0], 0
je 0x50f86d
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf2f], 0
jne 0x50f871
xor edx, edx
jmp 0x50f873
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.005130c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50f88f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50f90f
xor eax, eax
push ebp
push 0x50f9b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x12], 0
je 0x50f9a8
mov eax, dword [ebp - 4]
lea edx, [eax + 0x1070]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc]
call fcn.004b8f64
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc]
call fcn.0040910c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403f9c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.004041a0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x49c]
call fcn.00495914
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdf5], 0
jne 0x50f994
cmp dword [ebp - 0x1c], 0
je 0x50f998
xor edx, edx
jmp 0x50f99a
mov dl, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x49c]
call fcn.00495814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50f9ed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fb01
cmp byte [ebp - 0x12], 0
je 0x50face
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10ec], 0
je 0x50fa44
cmp byte [ebp - 0x11], 0
jne 0x50fa2c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10ec]
cmp byte [edx + 0xc9], 0
jne 0x50fa2c
xor edx, edx
jmp 0x50fa2e
mov dl, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov byte [eax + 0xc9], dl
xor edx, edx
call fcn.004cec44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2bc]
call fcn.00461a20
test eax, eax
jle 0x50fa9a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2bc]
mov eax, dword [eax + 0x19c]
mov ebx, dword [eax + 0x180]
mov eax, dword [ebp - 4]
mov dword [eax + 0x10f4], ebx
lea eax, [ebp - 0x28]
lea edx, [ebx + 0x30]
call fcn.00403f40
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x498]
call fcn.0042cee0
mov eax, dword [ebp - 4]
call fcn.0050be08
jmp 0x50fab8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x498]
mov edx, 0x50fe84
call fcn.0042cee0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10f4], edx
mov eax, dword [ebp - 4]
call fcn.005148b4
mov dl, byte [0x50fe8c]
mov eax, dword [ebp - 4]
call fcn.0050cc6c
mov eax, dword [0x541ef4]
mov eax, dword [eax]
xor edx, edx
call fcn.00434dfc
mov eax, dword [ebp - 4]
mov byte [eax + 0x106c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov dl, 1
call fcn.00441f78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fbc6
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403d44
lea eax, [ebp - 0x28]
call fcn.00403d20
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403d44
lea eax, [ebp - 8]
call fcn.00403d20
ret